[BUGFIX] Prevent crash saving <a> without "href" attribute 38/52038/3
authorFrancois Suter <francois@typo3.org>
Tue, 14 Mar 2017 08:42:18 +0000 (09:42 +0100)
committerChristian Kuhn <lolli@schwarzbu.ch>
Tue, 14 Mar 2017 21:37:42 +0000 (22:37 +0100)
commite4edc72df3fbf531e112919d06c6e965ab206188
tree12e6ad90231671087b1b6cb11bf2f71148c3b603
parent454794012c55db047dbed1ed64fa4a4eb83afeea
[BUGFIX] Prevent crash saving <a> without "href" attribute

Prevent a PHP error in the HTML parser when saving a content element
containing an <a> tag without "href" attribute by using an empty string
instead of null in the link resolver.

Resolves: #80268
Releases: master
Change-Id: I249f8ad13ebd0b2e9430868fdce287b2745ae9bc
Reviewed-on: https://review.typo3.org/52038
Reviewed-by: Stephan Großberndt <stephan@grossberndt.de>
Tested-by: Stephan Großberndt <stephan@grossberndt.de>
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Gianluigi Martino <gmartino27@gmail.com>
Tested-by: Gianluigi Martino <gmartino27@gmail.com>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/core/Classes/Html/RteHtmlParser.php