From 8b85ee10a928b688dbcfa9d94fa8c5fc26c2af9f Mon Sep 17 00:00:00 2001 From: Tim van Dijen <tvdijen@gmail.com> Date: Sat, 6 Jan 2018 11:43:14 +0100 Subject: [PATCH] Revert 8e24406 --- lib/SimpleSAML/Utils/HTTP.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/SimpleSAML/Utils/HTTP.php b/lib/SimpleSAML/Utils/HTTP.php index 0177ac766..d96ed81a1 100644 --- a/lib/SimpleSAML/Utils/HTTP.php +++ b/lib/SimpleSAML/Utils/HTTP.php @@ -757,7 +757,7 @@ class HTTP $baseDir = $cfg->getBaseDir(); $cur_path = realpath($_SERVER['SCRIPT_FILENAME']); // find the path to the current script relative to the www/ directory of SimpleSAMLphp - $rel_path = str_replace($baseDir.'www'.DIRECTORY_SEPARATOR, '', $cur_path || ''); + $rel_path = str_replace($baseDir.'www'.DIRECTORY_SEPARATOR, '', $cur_path); // convert that relative path to an HTTP query $url_path = str_replace(DIRECTORY_SEPARATOR, '/', $rel_path); // find where the relative path starts in the current request URI -- GitLab