[BUGFIX] Prevent double content link checks 12/26512/6
authorMathias Schreiber <mathias.schreiber@wmdb.de>
Thu, 18 Dec 2014 09:45:12 +0000 (10:45 +0100)
committerAnja Leichsenring <aleichsenring@ab-softlab.de>
Sat, 20 Dec 2014 09:46:56 +0000 (10:46 +0100)
commitafad106ce08a95f354720349e93b4c7ac05ecc7c
tree95b8bf5f447cd8d390993ec571500f42192228c1
parent07986c435cb467c3a95a870bcecc4b35211b2589
[BUGFIX] Prevent double content link checks

When a link points to a content element by using it's anchor behind
the page UID the reference index contains two entries for this link,
one for the linked page and one for the linked content element.

Since the content element is already checked when the page link is
validated by extracting the anchor element from the URL it is not
required to handle any other references than those starting with
"pages:". This prevents content elements from being treated as pages.

Resolves: #50772
Releases: master, 6.2
Change-Id: I5337ea01614eee2228fe09936f49a88b5ea96e5d
Reviewed-on: http://review.typo3.org/26512
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Frans Saris <franssaris@gmail.com>
Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
typo3/sysext/linkvalidator/Classes/Linktype/InternalLinktype.php