[BUGFIX] Do not remove trailing slash in slug sanitization 99/58099/2
authorBenni Mack <benni@typo3.org>
Fri, 31 Aug 2018 09:27:54 +0000 (11:27 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Fri, 31 Aug 2018 10:38:47 +0000 (12:38 +0200)
commit383846c66a985ded636bbc3f24ff445c75e4119b
treecacbae350e3164687b06c8fa86edfcb0a6657ca6
parent345c37afe5f879bea00f42115fe3d8d40d610ae1
[BUGFIX] Do not remove trailing slash in slug sanitization

It is totally legitimate to allow /my-page/ as slug (when in FormEngine
just remove the "readonly" attribute of the slug field), if explicitly
wanted.

There is a difference between "generate" (automatically create the slug)
where TYPO3 recommends slugs without slashes, and "sanitize"
to clean up a slug, where "/" is completely valid.

Resolves: #86055
Releases: master
Change-Id: I8e73f27e18fc74242cb230d69a85ec2946cf1dae
Reviewed-on: https://review.typo3.org/58099
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Frans Saris <franssaris@gmail.com>
Tested-by: Frans Saris <franssaris@gmail.com>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/core/Classes/DataHandling/SlugHelper.php
typo3/sysext/core/Tests/Unit/DataHandling/SlugHelperTest.php