Update of /cvsroot/php-blog/serendipity/include
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16455/include
Modified Files:
functions_trackbacks.inc.php
Log Message:
allow trackbacks to https
Index: functions_trackbacks.inc.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/include/functions_trackbacks.inc.php,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- functions_trackbacks.inc.php 19 Nov 2004 11:05:31 -0000 1.2
+++ functions_trackbacks.inc.php 25 Nov 2004 15:10:05 -0000 1.3
@@ -119,14 +119,14 @@
}
function serendipity_trackback_autodiscover($res, $loc, $url, $author, $title, $text) {
- if (!preg_match('@trackback:ping(\s*rdf:resource)?\s*=\s*"(http:[^"]+)"@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*"(http:[^"]+)"@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;
@@ -158,7 +158,7 @@
$u = parse_url($loc);
- if ($u['scheme'] != 'http') {
+ if ($u['scheme'] != 'http' && $u['scheme'] != 'https') {
return;
}
|