summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 789fee5)
raw | patch | inline | side by side (parent: 789fee5)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 12 Mar 2010 09:50:44 +0000 (09:50 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 12 Mar 2010 09:50:44 +0000 (09:50 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@16482 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/include/class_userFilterEditor.inc | patch | blob | history |
diff --git a/gosa-core/include/class_userFilterEditor.inc b/gosa-core/include/class_userFilterEditor.inc
index 1ac98ae956e53cadc46b1a21426c1bc991653c32..39aed98416a1b6717b184662d015db62d73a6536 100644 (file)
$i ++;
}
}
- $str = preg_replace('/::OPEN::/', "(", $str);
- $str = preg_replace('/::CLOSE::/', ")", $str);
+ $str = preg_replace('/::OPEN::/', '\(', $str);
+ $str = preg_replace('/::CLOSE::/', '\)', $str);
return($str);
}
// 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;
}