com web/php: BASE_HREF's host part differs from H TTP_HOST (www prepended) causing issues in Op era 12: include/header.inc

From: Date: Wed, 04 Dec 2013 18:16:12 +0000
Subject: com web/php: BASE_HREF's host part differs from H TTP_HOST (www prepended) causing issues in Op era 12: include/header.inc
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-17349@lists.php.net to get a copy of this message
Commit: 7ab7b50ac40b4f17b8a9ed392ac0bcf2f94621ee Author: Dejan Marjanovic <dejan.marjanovic@gmail.com> Wed, 4 Dec 2013 19:16:12 +0100 Parents: 4814770625aea7e88d35692b24ab7bb7ce6cc17a Branches: master Link: http://git.php.net/?p=web/php.git;a=commitdiff;h=7ab7b50ac40b4f17b8a9ed392ac0bcf2f94621ee Log: BASE_HREF's host part differs from HTTP_HOST (www prepended) causing issues in Opera 12 Changed paths: M include/header.inc Diff: diff --git a/include/header.inc b/include/header.inc index ba23ef8..d65cd03 100755 --- a/include/header.inc +++ b/include/header.inc @@ -65,9 +65,7 @@ if (isset($shortname) && $shortname) { <script type="text/javascript" src="<?php echo $STATIC_ROOT ?>js/ext/html5.js"></script> <![endif]--> -<?php if (!empty($_SERVER["BASE_HREF"])): ?> - <base href="<?php echo $_SERVER["BASE_HREF"] ?>"> -<?php endif ?> + <base href="http://<?php echo $_SERVER["HTTP_HOST"] . $_SERVER["SCRIPT_NAME"] ?>"> <?php $jsfiles = array('ext/modernizr.js');

« previous php.webmaster (#17349) next »