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:
@@ -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']); }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user