rtrime rewritten url
This commit is contained in:
@@ -68,7 +68,7 @@ trait UrlRewritingTrait {
|
|||||||
// Only allow one dash separator at a time (and make string lowercase)
|
// Only allow one dash separator at a time (and make string lowercase)
|
||||||
$cleanString = mb_strtolower(preg_replace('/--+/u', '-', $string), 'UTF-8');
|
$cleanString = mb_strtolower(preg_replace('/--+/u', '-', $string), 'UTF-8');
|
||||||
|
|
||||||
$urlFilePart = $cleanString . ".html";
|
$urlFilePart = rtrim($cleanString, '.-~_') . ".html";
|
||||||
|
|
||||||
// TODO :
|
// TODO :
|
||||||
// check if URL url already exists, and add a numeric suffix, or the like
|
// check if URL url already exists, and add a numeric suffix, or the like
|
||||||
|
|||||||
Reference in New Issue
Block a user