Skip to content

Commit 862fa37

Browse files
committed
[BUGFIX] Properly remove anchors from login logo
The login in the LoginLogoViewHelper of ext:backend fails to remove anchor (`<a>`) elements from SVG elements due to the missing SVG namespace. Resolves: #108371 Releases: main, 13.4 Change-Id: Id2c524b631b5f9d27e16bf5ae4c484ea9cec0d22 Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/91946 Tested-by: Christian Kuhn <[email protected]> Tested-by: Josef Glatz <[email protected]> Tested-by: Oliver Hader <[email protected]> Reviewed-by: Christian Kuhn <[email protected]> Tested-by: core-ci <[email protected]> Reviewed-by: Josef Glatz <[email protected]> Reviewed-by: Oliver Hader <[email protected]> Tested-by: Stefan Bürk <[email protected]> Reviewed-by: Stefan Bürk <[email protected]>
1 parent 4e79be6 commit 862fa37

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

typo3/sysext/backend/Classes/ViewHelpers/LoginLogoViewHelper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ private function parseSvg(SystemResourceInterface $svg): ?string
126126

127127
// @todo: move link-removal into a configurable svg-sanitizer option
128128
$xpath = new \DOMXPath($domXml);
129-
$links = $xpath->query('//a');
129+
$links = $xpath->query('//*[local-name()="a"]');
130130
foreach ($links as $link) {
131131
if ($link instanceof \DOMElement) {
132132
$link->remove();

0 commit comments

Comments
 (0)