1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-11 17:14:42 +02:00

Closes #4804 - Conversion of diacritics in name2id()

This commit is contained in:
camer0n
2023-09-28 09:36:31 -07:00
parent 720ea0c03d
commit dd9c011fdd
2 changed files with 11 additions and 2 deletions

View File

@@ -4374,7 +4374,8 @@ var_dump($select_options);*/
public function name2id($name)
{
$name = strtolower($name);
return rtrim(str_replace(array('[]', '[', ']', '_', '/', ' ','.', '(', ')', '::', ':', '?','=',"'"), array('-', '-', '', '-', '-', '-', '-','','','-','','-','-',''), $name), '-');
$name = $this->tp->toASCII($name);
return rtrim(str_replace(array('[]', '[', ']', '_', '/', ' ','.', '(', ')', '::', ':', '?','=',"'",','), array('-', '-', '', '-', '-', '-', '-','','','-','','-','-','',''), $name), '-');
}
/**