From: Jan Schneider Date: Wed, 9 Jun 2010 22:50:14 +0000 (+0200) Subject: Skip empty attributes. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=4ce5c4db98fe6edebcf1a5811c3d3a87582d9931;p=horde.git Skip empty attributes. --- diff --git a/framework/Url/lib/Horde/Url.php b/framework/Url/lib/Horde/Url.php index 6c8fcd5a1..04f6a9ab9 100644 --- a/framework/Url/lib/Horde/Url.php +++ b/framework/Url/lib/Horde/Url.php @@ -257,6 +257,9 @@ class Horde_Url $link .= " href=\"$url\""; } foreach ($attributes as $name => $value) { + if (!strlen($value)) { + continue; + } if (substr($name, -4) == '.raw') { $link .= ' ' . htmlspecialchars(substr($name, 0, -4)) . '="' . $value . '"';