summaryrefslogtreecommitdiffstats
path: root/tests/lib/SimpleSAML/ModuleTest.php
diff options
context:
space:
mode:
authorJaime Pérez <jaime.perez@uninett.no>2016-08-22 15:07:01 +0200
committerJaime Pérez <jaime.perez@uninett.no>2016-08-22 16:54:48 +0200
commit2155d1ecd3681f3380bb31f8149264975858e83d (patch)
tree5a577ecd56885d2ff730f75f93a3e5d632966702 /tests/lib/SimpleSAML/ModuleTest.php
parente20a75b3dab280fbfa0403d9c8f0ba3dab03f3d6 (diff)
downloadsimplesamlphp-2155d1ecd3681f3380bb31f8149264975858e83d.zip
simplesamlphp-2155d1ecd3681f3380bb31f8149264975858e83d.tar.gz
simplesamlphp-2155d1ecd3681f3380bb31f8149264975858e83d.tar.bz2
bugfix: Do not try to apply SSP's base URL if REQUEST_URI does not match.
It is possible that the current script ($_SERVER['SCRIPT_FILENAME']) is inside SimpleSAMLphp's 'www' directory. However, even if that's the case, we should not enforce our base URL (as set in the 'baseurlpath' configuration option) if the request URI ($_SERVER['REQUEST_URI']) does not contain the relative path to the script. This is the case of AuthMemCookie, for example, where accessing a random URL protected by Apache, leads to the execution of a SimpleSAMLphp script, where SimpleSAML\Utils\HTTP::getSelfURL() must not try to be smart when guessing the current URL.
Diffstat (limited to 'tests/lib/SimpleSAML/ModuleTest.php')
0 files changed, 0 insertions, 0 deletions