From 822061d1cc857b385cdbb0e00bc64e8e12e9ceaa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20D=C3=A4hne?= Date: Fri, 6 Oct 2017 12:49:57 +0200 Subject: [PATCH] decode wrong charset of server i received errors on some client servers with a wrong defined charset. This helped me to avoid this errors. --- core/components/phpthumbof/model/phpthumbof.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/components/phpthumbof/model/phpthumbof.class.php b/core/components/phpthumbof/model/phpthumbof.class.php index 4e1141d..49a086a 100644 --- a/core/components/phpthumbof/model/phpthumbof.class.php +++ b/core/components/phpthumbof/model/phpthumbof.class.php @@ -282,7 +282,7 @@ public function createThumbnail($src, $options) { /* Process options. Set $ptOptions */ if (!is_array($options)) { // convert options string to array - parse_str($options, $ptOptions); + parse_str(html_entity_decode($options), $ptOptions); } else { // otherwise use the original phpThumbOf code $ptOptions = array();