mirror of
https://github.com/e107inc/e107.git
synced 2025-04-27 07:53:17 +02:00
Fix: SEF-URL generation - check added to avoid "---"
This commit is contained in:
parent
0ec4a37bcb
commit
42efabc505
@ -4357,10 +4357,11 @@ class eHelper
|
||||
|
||||
$title = str_replace(array_keys($char_map), $char_map, $title);
|
||||
|
||||
$title = str_replace(array('/'),' ',$title);
|
||||
$title = str_replace(array('/',' '),' ',$title);
|
||||
$title = str_replace(array("&",",","(",")"),'',$title);
|
||||
$title = preg_replace('/[^\w\d\pL\s.-]/u', '', strip_tags(e107::getParser()->toHTML($title, TRUE)));
|
||||
$title = trim(preg_replace('/[\s]+/', ' ', str_replace('_', ' ', $title)));
|
||||
$title = str_replace(array(' - ',' -','- ','--'),'-',$title); // cleanup to avoid ---
|
||||
|
||||
$words = str_word_count($title,1, '1234567890');
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user