Commit 227cd384 authored by Côme Bernigaud's avatar Côme Bernigaud Committed by Benoit Mortier
Browse files

Fixes: #2738 Fixing accent handling in template uids

parent 977c7369
......@@ -2092,10 +2092,8 @@ function gen_uids($rule, $attributes)
global $config;
// Strip out non ascii chars
// Attributes should be arrays
foreach ($attributes as $name => $value) {
$value = iconv('UTF-8', 'US-ASCII//TRANSLIT', $value);
$value = preg_replace('/[^(\x20-\x7F)]*/', '', $value);
$attributes[$name] = array($value);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment