From cf2844e7ed9ebde3d9b197f0932299e69fe04946 Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 23 Jul 2010 10:30:05 +0000 Subject: [PATCH] Fixed propertyEditor -Use set_post/get_post git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19086 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../plugins/addons/propertyEditor/class_propertyEditor.inc | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/gosa-core/plugins/addons/propertyEditor/class_propertyEditor.inc b/gosa-core/plugins/addons/propertyEditor/class_propertyEditor.inc index 7f1960f59..eac830beb 100644 --- a/gosa-core/plugins/addons/propertyEditor/class_propertyEditor.inc +++ b/gosa-core/plugins/addons/propertyEditor/class_propertyEditor.inc @@ -204,7 +204,7 @@ class propertyEditor extends management $id = "{$class[0]}_{$cn[0]}"; $title = _("No description"); - if(isset($description[0])) $title = htmlentities($description[0],ENT_COMPAT, 'UTF-8'); + if(isset($description[0])) $title = set_post($description[0]); $title = preg_replace("/\n/", "
", $title); $tooltip = ""; @@ -217,10 +217,7 @@ class propertyEditor extends management $ssize = "208px"; $isize = "200px"; $name = "{$class[0]}:{$cn[0]}"; - $value = htmlentities($value[0],ENT_QUOTES ,'UTF-8'); - - // Add slashes to keep escaped values escaped after passing them to smarty. - $value = addslashes($value); + $value = set_post($value[0]); switch($type[0]){ case 'noLdap': -- 2.30.2