1
0
mirror of https://github.com/php/web-php.git synced 2026-03-23 23:02:13 +01:00

Revert "Un-taint the base tag with "./" things :)"

This reverts commit 0bc5a56ab7.
This commit is contained in:
Hannes Magnusson
2013-11-21 10:55:05 -08:00
parent 0bc5a56ab7
commit eec766fe11

View File

@@ -553,10 +553,7 @@ if (isset($_SERVER['MIRROR_STATS'])) {
// Provide base href information to make relative links on
// shortcut URL accessed pages work without redirection
if (isset($_SERVER['BASE_PAGE'])) {
$dirname = dirname($_SERVER['BASE_PAGE']) . "/";
if ($dirname == "./") {
$dirname = "";
}
$_SERVER['BASE_HREF'] = $MYSITE . $dirname;
$dirname = dirname($_SERVER['BASE_PAGE']);
$_SERVER['BASE_HREF'] = $MYSITE . $dirname . "/";
} else { unset($_SERVER['BASE_HREF']); }