com web/php: Revert "BASE_HREF's host part differs from HTTP_HOST (www prepended) causing issue s in Opera 12": include/header.inc

From: Date: Wed, 04 Dec 2013 19:01:15 +0000
Subject: com web/php: Revert "BASE_HREF's host part differs from HTTP_HOST (www prepended) causing issue s in Opera 12": include/header.inc
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-17355@lists.php.net to get a copy of this message
Commit: 657f447aada7548eb2fda02300d08bc047fded7f Author: Hannes Magnusson <bjori@mongodb.com> Wed, 4 Dec 2013 11:01:15 -0800 Parents: 4e50fab35fbb25d76c983f48fcb319d3114bebea Branches: master Link: http://git.php.net/?p=web/php.git;a=commitdiff;h=657f447aada7548eb2fda02300d08bc047fded7f Log: Revert "BASE_HREF's host part differs from HTTP_HOST (www prepended) causing issues in Opera 12" This reverts commit 7ab7b50ac40b4f17b8a9ed392ac0bcf2f94621ee. Changed paths: M include/header.inc Diff: diff --git a/include/header.inc b/include/header.inc index d65cd03..ba23ef8 100755 --- a/include/header..inc +++ b/include/header.inc @@ -65,7 +65,9 @@ if (isset($shortname) && $shortname) { <script type="text/javascript" src="<?php echo $STATIC_ROOT ?>js/ext/html5.js"></script> <![endif]--> - <base href="http://<?php echo $_SERVER["HTTP_HOST"] . $_SERVER["SCRIPT_NAME"] ?>"> +<?php if (!empty($_SERVER["BASE_HREF"])): ?> + <base href="<?php echo $_SERVER["BASE_HREF"] ?>"> +<?php endif ?> <?php $jsfiles = array('ext/modernizr.js');

« previous php.webmaster (#17355) next »