]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
escape slash in regexp
authorEvan Prodromou <evan@controlyourself.ca>
Tue, 14 Apr 2009 20:01:02 +0000 (16:01 -0400)
committerEvan Prodromou <evan@controlyourself.ca>
Tue, 14 Apr 2009 20:01:02 +0000 (16:01 -0400)
plugins/LinkbackPlugin.php

index 56a26176b1ee0104df0896d4794b157a12b4e77c..881ead99ec29d091d5a13729b9fa1d3eb8f87076 100644 (file)
@@ -99,7 +99,7 @@ class LinkbackPlugin extends Plugin
 
         if (array_key_exists('X-Pingback', $result->headers)) {
             $pb = $result->headers['X-Pingback'];
-        } else if (preg_match('/<link rel="pingback" href="([^"]+)" ?/?>/',
+        } else if (preg_match('/<link rel="pingback" href="([^"]+)" ?\/?>/',
                               $result->body,
                               $match)) {
             $pb = $match[1];