From 00284e8fa0e096d35f88bc6eb782d63df99b19e0 Mon Sep 17 00:00:00 2001 From: SecretR Date: Tue, 30 Apr 2013 12:37:03 +0300 Subject: [PATCH] Meta keywords format issue --- e107_handlers/application.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/e107_handlers/application.php b/e107_handlers/application.php index a38d126fc..5854dcc43 100644 --- a/e107_handlers/application.php +++ b/e107_handlers/application.php @@ -4211,7 +4211,7 @@ class eHelper public static function formatMetaKeys($keywordString) { $keywordString = preg_replace('/[^\w\pL\s\-.,+]/u', '', strip_tags(e107::getParser()->toHTML($keywordString, TRUE))); - return trim(preg_replace('/[\s,]+/', ',', str_replace('_', ' ', $keywordString))); + return trim(preg_replace('/[\s]+,[\s]+/', ',', str_replace('_', ' ', $keywordString))); } public static function formatMetaDescription($descrString)