From: Alexander Ebert Date: Sun, 18 May 2014 14:34:12 +0000 (+0200) Subject: Removed trailing hyphen from URL title X-Git-Tag: 2.1.0_Alpha_1~814 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=84299745249867a1e54f7794d75657f7ebb1c683;p=GitHub%2FWoltLab%2FWCF.git Removed trailing hyphen from URL title --- diff --git a/wcfsetup/install/files/lib/system/request/LinkHandler.class.php b/wcfsetup/install/files/lib/system/request/LinkHandler.class.php index 13d14d35a4..4b80cec09b 100644 --- a/wcfsetup/install/files/lib/system/request/LinkHandler.class.php +++ b/wcfsetup/install/files/lib/system/request/LinkHandler.class.php @@ -153,7 +153,7 @@ class LinkHandler extends SingletonFactory { $parameters['title'] = trim($this->titleRegex->replace($parameters['title'], '-'), '-'); // trim to 80 characters - $parameters['title'] = mb_substr($parameters['title'], 0, 80); + $parameters['title'] = rtrim(mb_substr($parameters['title'], 0, 80), '-'); // encode title if ($encodeTitle) $parameters['title'] = rawurlencode($parameters['title']);