Update of /cvsroot/php-blog/serendipity/include
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27934/include
Modified Files:
functions_trackbacks.inc.php
Log Message:
commit tobias' suggestions
Index: functions_trackbacks.inc.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/include/functions_trackbacks.inc.php,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- functions_trackbacks.inc.php 2 Dec 2004 10:54:55 -0000 1.5
+++ functions_trackbacks.inc.php 3 Dec 2004 09:34:51 -0000 1.6
@@ -119,14 +119,14 @@
}
function serendipity_trackback_autodiscover($res, $loc, $url, $author, $title, $text) {
- if (!preg_match('@trackback:ping(\s*rdf:resource)?\s*=\s*"(https?:[^"]+)"@i', $res, $matches)) {
+ if (!preg_match('@trackback:ping(\s*rdf:resource)?\s*=\s*["\'](https?:[^"\']+)["\']@i', $res, $matches)) {
echo '<div>• ' . sprintf(TRACKBACK_FAILED, TRACKBACK_NOT_FOUND) . '</div>';
return false;
}
$trackURI = trim($matches[2]);
- if (preg_match('@dc:identifier\s*=\s*"(https?:[^"]+)"@i', $res, $test)) {
+ if (preg_match('@dc:identifier\s*=\s*["\'](https?:[^\'"]+)["\']@i', $res, $test)) {
if ($loc != $test[1]) {
echo '<div>• ' . sprintf(TRACKBACK_FAILED, TRACKBACK_URI_MISMATCH) . '</div>';
return false;
|