Skip to content
Snippets Groups Projects
Unverified Commit 8b85ee10 authored by Tim van Dijen's avatar Tim van Dijen Committed by GitHub
Browse files

Revert 8e24406f

parent 8e24406f
No related branches found
No related tags found
No related merge requests found
...@@ -757,7 +757,7 @@ class HTTP ...@@ -757,7 +757,7 @@ class HTTP
$baseDir = $cfg->getBaseDir(); $baseDir = $cfg->getBaseDir();
$cur_path = realpath($_SERVER['SCRIPT_FILENAME']); $cur_path = realpath($_SERVER['SCRIPT_FILENAME']);
// find the path to the current script relative to the www/ directory of SimpleSAMLphp // 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 // convert that relative path to an HTTP query
$url_path = str_replace(DIRECTORY_SEPARATOR, '/', $rel_path); $url_path = str_replace(DIRECTORY_SEPARATOR, '/', $rel_path);
// find where the relative path starts in the current request URI // find where the relative path starts in the current request URI
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment