From 2fbe2c4ee417649435c546369ec735fb20a211a1 Mon Sep 17 00:00:00 2001 From: Franky-Boy Date: Mon, 26 Oct 2015 02:09:18 +0100 Subject: [PATCH] Update content.inc.php If the 'tv' variable's value has one or more equal sign, the string is cut at the first equal sign. After this change, you can use equal sign in the value of 'tv' variable. It is very useful, when you add a special character or icon ( for example: ) for the value. It works after this modification. --- cms/includes/content.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cms/includes/content.inc.php b/cms/includes/content.inc.php index 6076514..bda2c94 100644 --- a/cms/includes/content.inc.php +++ b/cms/includes/content.inc.php @@ -94,7 +94,7 @@ foreach($tv_array as $tv_item) { if($tv_item) { - $tv_item_parts = explode('=', $tv_item); + $tv_item_parts = explode('=', $tv_item, 2); $tv[trim($tv_item_parts[0])] = isset($tv_item_parts[1]) ? trim($tv_item_parts[1]) : true; } }