Skip to content

Commit

Permalink
Fixed issue #7620: Problem validating accents with regular expression…
Browse files Browse the repository at this point in the history
… validation
  • Loading branch information
c-schmitz committed Mar 2, 2013
1 parent 6eaf4fb commit 3ed37a4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion application/helpers/expressions/em_core_helper.php
Expand Up @@ -3499,7 +3499,8 @@ function expr_mgr_htmlspecialchars_decode($string)
function exprmgr_regexMatch($pattern, $input)
{
try {
$result = @preg_match($pattern, $input);
// 'u' is the regexp modifier for unicode so that non-ASCII string will nbe validated properly
$result = @preg_match($pattern.'u', $input);
} catch (Exception $e) {
$result = false;
// How should errors be logged?
Expand Down

0 comments on commit 3ed37a4

Please sign in to comment.