com web/php: Don't use <base> tag if BASE_HREF is not a vailable (thanks Anthony Sterling): include/heade r.inc

From: Date: Thu, 06 Jan 2011 16:09:59 +0000
Subject: com web/php: Don't use <base> tag if BASE_HREF is not a vailable (thanks Anthony Sterling): include/heade r.inc
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-23648@lists.php.net to get a copy of this message
Commit: 4d37acb1d628be77c71ea8fd7f78559db4e55f09 Author: Peter Cowburn <salathe@php.net> Thu, 6 Jan 2011 16:09:59 +0000 Parents: ad5096c0e3972bd3deef347d29f205e63b7ee886 Branches: master Link: http://git.php.net/?p=web/php.git;a=commitdiff;h=4d37acb1d628be77c71ea8fd7f78559db4e55f09 Log: Don't use <base> tag if BASE_HREF is not available (thanks Anthony Sterling) Changed paths: M include/header.inc Diff: diff --git a/include/header.inc b/include/header.inc index 9c96439..f7ad92f 100644 --- a/include/header.inc +++ b/include/header.inc @@ -45,7 +45,9 @@ if ($shortname) { } </script> <script type="text/javascript" src="<?php echo $STATIC_ROOT ?>js/common..js<?php echo $v?>"></script> +<?php if (!empty($_SERVER["BASE_HREF"])): ?> <base href="<?php echo $_SERVER["BASE_HREF"] ?>" /> +<?php endif ?> </head> <body>

« previous php.webmaster (#23648) next »