[BUGFIX] Do not mark "current" links as broken 72/56072/2
authorSusanne Moog <susanne.moog@typo3.org>
Thu, 8 Mar 2018 09:53:25 +0000 (10:53 +0100)
committerChristian Kuhn <lolli@schwarzbu.ch>
Fri, 9 Mar 2018 00:46:59 +0000 (01:46 +0100)
commit21302c836bdf0913032138b31f9f46dbd03dfc1a
tree1d8d0a769cfcea9d7a3e6cc51723237630d070ce
parent8fa130aedf84909f85189a301386c08a3b4c502e
[BUGFIX] Do not mark "current" links as broken

The linkhandler can resolve pages by uid or by using the
special keyword "current" which links the current page id.

The RteHtmlParser marked links to "current" as broken as the check
on whether the page record exists fails with a non-int uid.

The check has been disabled for links to the current page, as in that
context "current" has to be a valid page record (else content could
not be edited on it).

Resolves: #83423
Releases: master, 8.7
Change-Id: Iefde294a5f84e28a5faa1bc1262b7cc84e625f7e
Reviewed-on: https://review.typo3.org/56072
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/core/Classes/Html/RteHtmlParser.php