[BUGFIX] Avoid double slashes in slug generation 03/58503/2
authorOliver Hader <oliver@typo3.org>
Sun, 30 Sep 2018 15:34:58 +0000 (17:34 +0200)
committerWouter Wolters <typo3@wouterwolters.nl>
Sun, 30 Sep 2018 16:09:43 +0000 (18:09 +0200)
commitf60f4d8ec8f897b64961bc5f538c5e161de571a3
tree3d65758c8e97eacdf80b2d28b42112106c39e8d5
parent33d8b635e99532221265f68d6a8a7d7a6ce42c34
[BUGFIX] Avoid double slashes in slug generation

When generating slugs it might happen, that double slashes
are generated. This basically results from both prepending
and appending slashes at the same time.

Resolves: #86479
Releases: master
Change-Id: I441fee333cd0b3fbad3dde1a130eb08356bd4c2d
Reviewed-on: https://review.typo3.org/58503
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Benni Mack <benni@typo3.org>
Tested-by: Benni Mack <benni@typo3.org>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
typo3/sysext/core/Classes/DataHandling/SlugHelper.php
typo3/sysext/core/Tests/Unit/DataHandling/SlugHelperTest.php