From a95813bd5ddb34ed9a4229018a9db9fdc0b127f4 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Fri, 6 Apr 2007 12:11:21 +0000 Subject: [PATCH] "fix for bug #385: Problem with HTML specialchars in addressbook" --- etemplate/inc/class.select_widget.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/etemplate/inc/class.select_widget.inc.php b/etemplate/inc/class.select_widget.inc.php index 61543b5a00..de4b641a3e 100644 --- a/etemplate/inc/class.select_widget.inc.php +++ b/etemplate/inc/class.select_widget.inc.php @@ -173,7 +173,7 @@ $cell['no_lang'] = True; foreach(is_array($value) ? $value : (strpos($value,',') !== false ? explode(',',$value) : array($value)) as $id) { - if ($id) $cell['sel_options'][$id] = $GLOBALS['egw']->strip_html($GLOBALS['egw']->categories->id2name($id)); + if ($id) $cell['sel_options'][$id] = stripslashes($GLOBALS['egw']->categories->id2name($id)); } break; } @@ -187,7 +187,7 @@ } foreach((array)$categories->return_sorted_array(0,False,'','','',!$type) as $cat) { - $s = str_repeat(' ',$cat['level']) . $GLOBALS['egw']->strip_html($cat['name']); + $s = str_repeat(' ',$cat['level']) . stripslashes($cat['name']); if ($cat['app_name'] == 'phpgw' || $cat['owner'] == '-1') {