From 8c79788c84db74ac4a64ee3d03e47fa0fd2e3c38 Mon Sep 17 00:00:00 2001 From: Cameron Date: Sun, 27 Nov 2016 15:13:57 -0800 Subject: [PATCH] Issue #2057 Avoid messing with array values in toForm() --- e107_handlers/e_parse_class.php | 2 +- e107_handlers/form_handler.php | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/e107_handlers/e_parse_class.php b/e107_handlers/e_parse_class.php index e10819b93..46c6ebce4 100644 --- a/e107_handlers/e_parse_class.php +++ b/e107_handlers/e_parse_class.php @@ -789,7 +789,7 @@ class e_parse extends e_parser $search = array('$', '"', '<', '>'); $replace = array('$', '"', '<', '>'); $text = str_replace($search, $replace, $text); - if (e107::wysiwyg() !== true) + if (e107::wysiwyg() !== true && is_string($text)) { // fix for utf-8 issue with html_entity_decode(); ??? $text = urldecode($text); diff --git a/e107_handlers/form_handler.php b/e107_handlers/form_handler.php index e70b7ff51..b3f83ab1e 100644 --- a/e107_handlers/form_handler.php +++ b/e107_handlers/form_handler.php @@ -2797,7 +2797,9 @@ class e_form /** * Render a Breadcrumb in Bootstrap format. - * @param $array + * @param $array + * @param $array[url] + * @param $array[text] */ function breadcrumb($array) {