Commit:    a230e30720e433ea4745eb711fa21a540d703158
Author:    Dejan Marjanovic <[email protected]>         Wed, 4 Dec 
2013 19:16:12 +0100
Parents:   c509f5d393db83e2532eee8e3222ca42228deae0
Branches:  master

Link:       
http://git.php.net/?p=web/php.git;a=commitdiff;h=a230e30720e433ea4745eb711fa21a540d703158

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