Commit:    7ab7b50ac40b4f17b8a9ed392ac0bcf2f94621ee
Author:    Dejan Marjanovic <dejan.marjano...@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');


--
PHP Webmaster List Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to