]> git.mxchange.org Git - friendica.git/blobdiff - mod/photo.php
New delivery module for ap
[friendica.git] / mod / photo.php
index 15a623e3c2b280796ae2187a0fafc028f9ea05fe..6d456b349e9c496ff7168407bde68dcdf5ca9565 100644 (file)
@@ -107,7 +107,7 @@ function photo_init(App $a)
 
                // check if the photo exists and get the owner of the photo
                $r = q("SELECT `uid` FROM `photo` WHERE `resource-id` = '%s' LIMIT 1",
-                       dbesc($photo),
+                       DBA::escape($photo),
                        intval($resolution)
                );
                if (DBA::isResult($r)) {
@@ -115,7 +115,7 @@ function photo_init(App $a)
 
                        // Now we'll see if we can access the photo
                        $r = q("SELECT * FROM `photo` WHERE `resource-id` = '%s' AND `scale` <= %d $sql_extra ORDER BY scale DESC LIMIT 1",
-                               dbesc($photo),
+                               DBA::escape($photo),
                                intval($resolution)
                        );
                        if (DBA::isResult($r)) {