From: hickert Date: Fri, 12 Mar 2010 09:50:44 +0000 (+0000) Subject: Fixed filtering X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=057f5ab7050ace5ee06c66bb13dc381bb3bfbee7;p=gosa.git Fixed filtering git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@16482 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/include/class_userFilterEditor.inc b/gosa-core/include/class_userFilterEditor.inc index 1ac98ae95..39aed9841 100644 --- a/gosa-core/include/class_userFilterEditor.inc +++ b/gosa-core/include/class_userFilterEditor.inc @@ -81,8 +81,8 @@ class userFilterEditor extends plugin $i ++; } } - $str = preg_replace('/::OPEN::/', "(", $str); - $str = preg_replace('/::CLOSE::/', ")", $str); + $str = preg_replace('/::OPEN::/', '\(', $str); + $str = preg_replace('/::CLOSE::/', '\)', $str); return($str); } @@ -142,11 +142,10 @@ class userFilterEditor extends plugin // Filter needs special handling, it may contain charactes like < and > // wich are stipped out by get_post() && validate() if(isset($_POST['filter'])){ - $f = $_POST['filter']; + $f = mb_convert_encoding($_POST['filter'], 'UTF-8'); if(get_magic_quotes_gpc()){ $f = stripcslashes($f); } - $f = mb_convert_encoding($_POST['filter'], 'UTF-8'); $this->filter = $f; }