cvs: phpweb / credits.php
| From: | Gabor Hojtsy | Date: | Thu, 07 Aug 2003 15:07:18 +0000 |
| Subject: | cvs: phpweb / credits.php | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-19876@lists.php.net to get a copy of this message | ||
goba Thu Aug 7 11:07:18 2003 EDT
Modified files:
/phpweb credits.php
Log:
Fix for a PHP bug here... Now sites with an actual PHP set up will
have an XHTML 1.0 strict compatible credits page
Index: phpweb/credits.php
diff -u phpweb/credits.php:1.8 phpweb/credits.php:1.9
--- phpweb/credits.php:1.8 Thu Aug 7 07:12:44 2003
+++ phpweb/credits.php Thu Aug 7 11:07:18 2003
@@ -1,5 +1,5 @@
<?php
-// $Id: credits.php,v 1.8 2003/08/07 11:12:44 goba Exp $
+// $Id: credits.php,v 1.9 2003/08/07 15:07:18 goba Exp $
$_SERVER['BASE_PAGE'] = 'credits.php';
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';
@@ -12,6 +12,14 @@
// Strip all but the body and drop styles
preg_match('!<body.*?>(.*)</body>!ims', $credits, $m);
$credits = preg_replace('!<style.*?>.*</style>!ims', '', $m[1]);
+
+// Fix for PHP bug #24839,
+// which affects the page layout
+$credits = str_replace(
+ array("</center>", "& "),
+ array("</div>", "& "),
+ $credits
+);
// If there is something left, print it out
if ($credits) {