From 0a861fcd5e3950899baf40e89e50dd0d72c47846 Mon Sep 17 00:00:00 2001 From: Simon Beginn Date: Sat, 28 Nov 2020 21:53:18 +0100 Subject: [PATCH] Added 405 answer to SSO attempts --- www/index.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/www/index.php b/www/index.php index 7ae84cb..b9c8f3d 100644 --- a/www/index.php +++ b/www/index.php @@ -111,6 +111,9 @@ if(isset($_GET['path'])) { $result['plans']['enterprise']['amount'] = 42; $result['plans']['enterprise_plus'] = array(); $result['plans']['enterprise_plus']['amount'] = 42; + } else if(preg_match('/auth\/.*/', $_GET['path'])) { + $result = array('error' => 'Sorry, but SSO is currently not supported.'); + $code = 401; //Let Pritunl fail, without 500 codes (it will show 405) } }