From 4219895fa968ca600e8b8d48c15827911ed34ca6 Mon Sep 17 00:00:00 2001 From: krishnaGandhi11 Date: Mon, 18 May 2026 14:46:43 +0530 Subject: [PATCH 1/2] Fixed comma not stripped in stringUrlUnicodeSlug --- src/OutputFilter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/OutputFilter.php b/src/OutputFilter.php index ed8f5bb1..fdfc6746 100644 --- a/src/OutputFilter.php +++ b/src/OutputFilter.php @@ -185,7 +185,7 @@ public static function stringUrlUnicodeSlug($string) $str = str_replace('-', ' ', $str); // Replace forbidden characters by whitespaces - $str = preg_replace('#[:\#\*"@+=;!><&\.%()\]\/\'\\\\|\[]#', "\x20", $str); + $str = preg_replace('#[:\#\*"@+=;!><&\.%()\]\/\'\\\\|\[,]#', "\x20", $str); // Delete all '?' $str = str_replace('?', '', $str); From c843e40c820464c387044d34dcd2482b56e2709c Mon Sep 17 00:00:00 2001 From: Krishna Gandhi Date: Wed, 20 May 2026 23:06:31 +0530 Subject: [PATCH 2/2] Update src/OutputFilter.php Co-authored-by: Richard Fath --- src/OutputFilter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/OutputFilter.php b/src/OutputFilter.php index fdfc6746..f95cf415 100644 --- a/src/OutputFilter.php +++ b/src/OutputFilter.php @@ -185,7 +185,7 @@ public static function stringUrlUnicodeSlug($string) $str = str_replace('-', ' ', $str); // Replace forbidden characters by whitespaces - $str = preg_replace('#[:\#\*"@+=;!><&\.%()\]\/\'\\\\|\[,]#', "\x20", $str); + $str = preg_replace('#[:\#\*"@+=,;!><&\.%()\]\/\'\\\\|\[]#', "\x20", $str); // Delete all '?' $str = str_replace('?', '', $str);