From 7bc4d899019c67895d13c9734e0668893cd21d11 Mon Sep 17 00:00:00 2001 From: Jimako Date: Tue, 26 Sep 2023 22:25:06 +0200 Subject: [PATCH] fix for text ID for national characters #4804 CLOSES #4804 --- e107_handlers/form_handler.php | 1 + 1 file changed, 1 insertion(+) diff --git a/e107_handlers/form_handler.php b/e107_handlers/form_handler.php index 16dd21cb59..566ebc708d 100644 --- a/e107_handlers/form_handler.php +++ b/e107_handlers/form_handler.php @@ -4374,6 +4374,7 @@ protected function _format_id($id_value, $name, $value = null, $return_attribute public function name2id($name) { $name = strtolower($name); + $name = e107::getParser()->toASCII($name); return rtrim(str_replace(array('[]', '[', ']', '_', '/', ' ','.', '(', ')', '::', ':', '?','=',"'"), array('-', '-', '', '-', '-', '-', '-','','','-','','-','-',''), $name), '-'); }