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

Another attempt to fix the build

parent 9db5dfad
No related branches found
No related tags found
No related merge requests found
......@@ -756,6 +756,8 @@ class HTTP
$cfg = \SimpleSAML_Configuration::getInstance();
$baseDir = $cfg->getBaseDir();
$cur_path = realpath($_SERVER['SCRIPT_FILENAME']);
// make sure we got a string from realpath()
$cur_path = is_string($cur_path) ? $cur_path : '';
// find the path to the current script relative to the www/ directory of SimpleSAMLphp
$rel_path = str_replace($baseDir.'www'.DIRECTORY_SEPARATOR, '', $cur_path);
// convert that relative path to an HTTP query
......
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