]> gitweb.fluxo.info Git - original.git/commitdiff
Fixing delimiters on preg_match master
authorSilvio Rhatto <rhatto@riseup.net>
Fri, 18 Feb 2011 14:09:23 +0000 (12:09 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Fri, 18 Feb 2011 14:09:23 +0000 (12:09 -0200)
www/inc/photo.class.inc.php

index 46f1a8f563e8ddbbdd840635b0abf0efb0262004..1a55e59879c8dca8b1c0631ed89d9f5ecc57911d 100644 (file)
@@ -102,7 +102,7 @@ class C_photo {
                                return;
                        }
                        //parse buffer
-                       if(preg_match("/^<span>(.*)</span>( - )?(.*)/i", $buffer, $x)) {
+                       if(preg_match("|^<span>(.*)</span>( - )?(.*)|i", $buffer, $x)) {
                                $this->name = $x[1]; //mostly "Photo"
                                $this->caption = chop($x[3]);
                        } else {