Fix SEO function to replace non-breaking spaces with regular spaces

This commit is contained in:
2025-04-14 18:46:09 +02:00
parent 3f5649dbc7
commit 7a631f407f

View File

@@ -999,6 +999,8 @@ class S
public static function seo( $val, $delete_rhombs = false )
{
$val = preg_replace( '/\xc2\xa0/', ' ', $val );
$array_rep1 = array( '*', '_', ' ', '+', '"', "'", '?', '-', ',', '!', '~', '<', '>', '@', '#', '$', '%', '^', '&', '*' . '(', ')' . '-', '=', '\\', '|', '[', ']', ':', '(', ')', '', '•', '' );
$array_rep2 = array( '-', '-', '-', '-', '', '', '', '-', '-', '', '-', '-', '-', '-', '-', '-', '-', '-', '-', '-', '-', '-', '', '-', '-', '-', '-', '-', '-', '-', '-', '-', '-', '' );