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

Make Travis happy

parent 312819bc
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']);
// althought very unlikely, realpath() could return false and Travis doesn't like that idea
assert(is_string($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