[med-svn] r580 - in trunk/community/website: . inc
hanska-guest at alioth.debian.org
hanska-guest at alioth.debian.org
Thu Oct 4 20:29:27 UTC 2007
Author: hanska-guest
Date: 2007-10-04 20:29:27 +0000 (Thu, 04 Oct 2007)
New Revision: 580
Modified:
trunk/community/website/inc/header.inc.php
trunk/community/website/index.php
Log:
Markup validation: fallback values.
Fixing preg_replace().
Modified: trunk/community/website/inc/header.inc.php
===================================================================
--- trunk/community/website/inc/header.inc.php 2007-10-04 20:24:35 UTC (rev 579)
+++ trunk/community/website/inc/header.inc.php 2007-10-04 20:29:27 UTC (rev 580)
@@ -1,6 +1,9 @@
<?php
require_once("locale.inc.php");
-
+
+ $type = "text/html; charset=UTF-8";
+ $xml = "";
+
if (isset($_SERVER['HTTP_ACCEPT'])) {
if (stristr($_SERVER['HTTP_ACCEPT'], "application/xhtml+xml")) {
$type = "application/xhtml+xml; charset=UTF-8";
Modified: trunk/community/website/index.php
===================================================================
--- trunk/community/website/index.php 2007-10-04 20:24:35 UTC (rev 579)
+++ trunk/community/website/index.php 2007-10-04 20:29:27 UTC (rev 580)
@@ -102,7 +102,7 @@
$desc = html_entity_decode($rs["items"][$i]["description"]);
preg_match("/(Commit by.*)<strong>(.*)<\/strong>/", $desc, $matches);
$author = $matches[2];
- $desc = preg_replace("/(Commit by.*)<strong>(.*)<\/strong>.*<span>.*::.*<\/span>/", "", $desc);
+ $desc = preg_replace("/(Commit by.*<strong>.*<\/strong>.*<span>.*::.*<\/span>)/", "", $desc);
?>
<tr>
<td><?=$rs["items"][$i]["pubDate"]?></td>
More information about the debian-med-commit
mailing list