From 0df0fb4b4660b1811c22a7acba35bd62e07747ea Mon Sep 17 00:00:00 2001 From: Habeas Codice Date: Sat, 30 May 2015 19:49:32 -0700 Subject: fix unable to crop profile pic on postgres --- mod/profile_photo.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mod') diff --git a/mod/profile_photo.php b/mod/profile_photo.php index fd5ea2af2..597b5f66d 100644 --- a/mod/profile_photo.php +++ b/mod/profile_photo.php @@ -341,7 +341,7 @@ function profile_photo_content(&$a) { return; } - $ph = photo_factory($r[0]['data'], $r[0]['type']); + $ph = photo_factory(dbunescbin($r[0]['data']), $r[0]['type']); // go ahead as if we have just uploaded a new photo to crop profile_photo_crop_ui_head($a, $ph); } -- cgit v1.2.3