Commit: 657f447aada7548eb2fda02300d08bc047fded7f Author: Hannes Magnusson <[email protected]> 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'); -- PHP Webmaster List Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
