1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-16 03:24:20 +02:00

Fix for lowercase usernames in SEF Url.

This commit is contained in:
Cameron
2016-12-08 09:38:23 -08:00
parent bfec7fc2c2
commit 1490ad009d
3 changed files with 11 additions and 3 deletions

View File

@@ -2498,7 +2498,12 @@ class eUrlRule
$url = strtr($this->template, $tr);
// Work-around fix for lowercase username
if($urlFormat == 'dashl' && $this->route == 'profile/view')
{
$url = str_replace('%20','-', strtolower($url));
}
if(empty($params))
{
return $url !== '' ? $url.$suffix : $url;