Disallow empty link values in HtmlOutputNodeA
authorTim Düsterhus <duesterhus@woltlab.com>
Mon, 18 Sep 2023 09:53:40 +0000 (11:53 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Mon, 18 Sep 2023 09:55:30 +0000 (11:55 +0200)
wcfsetup/install/files/lib/system/html/output/node/HtmlOutputNodeA.class.php

index 0e08ab6fd2a51975cd9b6a33ceff18789889da42..9dc12b6a9b5ecbaa49e1ed24a00cde736f227cb4 100644 (file)
@@ -58,7 +58,7 @@ class HtmlOutputNodeA extends AbstractHtmlOutputNode
 
             $value = StringUtil::trim($element->textContent);
 
-            if ($this->isSuspiciousValue($value, $href)) {
+            if ($value === '' || $this->isSuspiciousValue($value, $href)) {
                 $value = $href->__toString();
             }