Skip empty attributes.
authorJan Schneider <jan@horde.org>
Wed, 9 Jun 2010 22:50:14 +0000 (00:50 +0200)
committerJan Schneider <jan@horde.org>
Thu, 10 Jun 2010 15:27:50 +0000 (17:27 +0200)
framework/Url/lib/Horde/Url.php

index 6c8fcd5..04f6a9a 100644 (file)
@@ -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 . '"';