From 40b2e24c6dd72c91bf14bf5f36c8f737756d594d Mon Sep 17 00:00:00 2001 From: redmatrix Date: Sat, 27 Aug 2016 05:06:12 -0700 Subject: vsprintf error on sql query --- include/photos.php | 1 + 1 file changed, 1 insertion(+) (limited to 'include/photos.php') diff --git a/include/photos.php b/include/photos.php index 9d15d3692..a3018816c 100644 --- a/include/photos.php +++ b/include/photos.php @@ -715,6 +715,7 @@ function profile_photo_set_profile_perms($uid, $profileid = 0) { if($profileid) { $r = q("SELECT photo, profile_guid, id, is_default, uid FROM profile WHERE uid = %d and ( profile.id = %d OR profile.profile_guid = '%s') LIMIT 1", + intval($uid), intval($profileid), dbesc($profileid) ); -- cgit v1.2.3