[BUGFIX] Auto-generate slug when invalid characters are given 55/58155/2
authorBenni Mack <benni@typo3.org>
Mon, 3 Sep 2018 19:14:45 +0000 (21:14 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Mon, 3 Sep 2018 19:59:08 +0000 (21:59 +0200)
commit964afb3748312de7b4b8a9e3d44d14033df0af9c
tree74f3990ef7e48983f3fd1578b1f86f1e0191c9dd
parentdb0bf58571863c221f3d8a3382954c0025c70e68
[BUGFIX] Auto-generate slug when invalid characters are given

If a page title is like "!!!" this currently results in an invalid slug.

The generator now auto-generates something with "default-hashXYZ"
in order to always be unique on creation time.

Resolves: #86122
Releases: master
Change-Id: I453e2155c29f1bde4d05d481e0ae43913bc5ad8b
Reviewed-on: https://review.typo3.org/58155
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Andreas Fernandez <a.fernandez@scripting-base.de>
Tested-by: Andreas Fernandez <a.fernandez@scripting-base.de>
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