Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
fusiondirectory
fusiondirectory
Commits
227cd384
Commit
227cd384
authored
Dec 09, 2013
by
Côme Bernigaud
Committed by
Benoit Mortier
Dec 09, 2013
Browse files
Fixes: #2738 Fixing accent handling in template uids
parent
977c7369
Changes
1
Hide whitespace changes
Inline
Side-by-side
include/functions.inc
View file @
227cd384
...
...
@@ -2092,10 +2092,8 @@ function gen_uids($rule, $attributes)
{
global
$config
;
//
S
tri
p out non ascii char
s
//
At
tri
butes should be array
s
foreach
(
$attributes
as
$name
=>
$value
)
{
$value
=
iconv
(
'UTF-8'
,
'US-ASCII//TRANSLIT'
,
$value
);
$value
=
preg_replace
(
'/[^(\x20-\x7F)]*/'
,
''
,
$value
);
$attributes
[
$name
]
=
array
(
$value
);
}
...
...
bmortier
@bmortier
mentioned in issue
#944 (closed)
·
Sep 02, 2017
mentioned in issue
#944 (closed)
mentioned in issue #944
Toggle commit list
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment