From 4ce5c4db98fe6edebcf1a5811c3d3a87582d9931 Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Thu, 10 Jun 2010 00:50:14 +0200 Subject: [PATCH] Skip empty attributes. --- framework/Url/lib/Horde/Url.php | 3 +++ 1 file changed, 3 insertions(+) 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 . '"'; -- 2.11.0