From 7a631f407ffd4dc8f71a8b0a2226c80ecba964a6 Mon Sep 17 00:00:00 2001 From: Jacek Pyziak Date: Mon, 14 Apr 2025 18:46:09 +0200 Subject: [PATCH] Fix SEO function to replace non-breaking spaces with regular spaces --- autoload/class.S.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/autoload/class.S.php b/autoload/class.S.php index cf1d082..56ff279 100644 --- a/autoload/class.S.php +++ b/autoload/class.S.php @@ -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( '-', '-', '-', '-', '', '', '', '-', '-', '', '-', '-', '-', '-', '-', '-', '-', '-', '-', '-', '-', '-', '', '-', '-', '-', '-', '-', '-', '-', '-', '-', '-', '' );