[2023-01-23] 4images 1.10 released
0 Members and 1 Guest are viewing this topic.
when somebody add a comment with the "ñ", an accent "áéíóúàèìùòù", the "¿" or the "¡", the comment does not appear. Inexplicably, once sent the comment, it is possible to edit and add these symbols.
$text = str_replace("\\'", "'", $text);
$text = str_replace("á", "á", $text);$text = str_replace("Á", "Á", $text);$text = str_replace("é", "é", $text);$text = str_replace("É", "É", $text);$text = str_replace("í", "í", $text);$text = str_replace("Í", "Í", $text);$text = str_replace("ó", "ó", $text);$text = str_replace("Ó", "Ó", $text);$text = str_replace("ú", "ú", $text);$text = str_replace("Ú", "Ú", $text);$text = str_replace("à", "à", $text);$text = str_replace("À", "À", $text);$text = str_replace("è", "è", $text);$text = str_replace("È", "È", $text);$text = str_replace("ì", "ì", $text);$text = str_replace("Ì", "Ì", $text);$text = str_replace("ù", "ù", $text);$text = str_replace("Ù", "Ù", $text);$text = str_replace("ò", "ò", $text);$text = str_replace("Ò", "Ò", $text);$text = str_replace("¡", "¡", $text);$text = str_replace("¿", "¿", $text);$text = str_replace("ñ", "ñ", $text);$text = str_replace("Ñ", "Ñ", $text);