From eec766fe11029a9ad16ebe049f7aeff8a3c95447 Mon Sep 17 00:00:00 2001 From: Hannes Magnusson Date: Thu, 21 Nov 2013 10:55:05 -0800 Subject: [PATCH] Revert "Un-taint the base tag with "./" things :)" This reverts commit 0bc5a56ab751f5a6c98f1ebca4df8964207e99ae. --- include/site.inc | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/include/site.inc b/include/site.inc index 1639ddd2c..3137fc83b 100644 --- a/include/site.inc +++ b/include/site.inc @@ -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']); }