]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Allow the oEmbed <link> tag to be split across lines
authorCraig Andrews <candrews@integralblue.com>
Tue, 1 Sep 2009 02:16:49 +0000 (22:16 -0400)
committerCraig Andrews <candrews@integralblue.com>
Tue, 1 Sep 2009 02:16:49 +0000 (22:16 -0400)
extlib/Services/oEmbed.php

index 7d507b6f622cea9ada872dbe1cde3c4e020586ba..b05e3a1d1485c5ae9a626b6eaede5736fd28f8f8 100644 (file)
@@ -303,7 +303,7 @@ class Services_oEmbed
         // Find all <link /> tags that have a valid oembed type set. We then
         // extract the href attribute for each type.
         $regexp = '#<link([^>]*)type="' . 
-                  '(application/json|text/xml)\+oembed"([^>]*)>#i';
+                  '(application/json|text/xml)\+oembed"([^>]*)>#im';
 
         $m = $ret = array();
         if (!preg_match_all($regexp, $body, $m)) {