projects
/
horde.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e919bd5
)
Skip empty attributes.
author
Jan Schneider
<jan@horde.org>
Wed, 9 Jun 2010 22:50:14 +0000
(
00:50
+0200)
committer
Jan Schneider
<jan@horde.org>
Thu, 10 Jun 2010 15:27:50 +0000
(17:27 +0200)
framework/Url/lib/Horde/Url.php
patch
|
blob
|
history
diff --git
a/framework/Url/lib/Horde/Url.php
b/framework/Url/lib/Horde/Url.php
index
6c8fcd5
..
04f6a9a
100644
(file)
--- 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 . '"';