summaryrefslogtreecommitdiff
path: root/server
diff options
context:
space:
mode:
authordeva <deva>2009-01-13 10:00:37 +0000
committerdeva <deva>2009-01-13 10:00:37 +0000
commita58622afba64661df051ee6454cb62643936356f (patch)
tree405bd8ea3c1da981f9cc7345da3251fa391d5fbe /server
parent9fcf15a06b9ec422dbad53508e8ce71d2d4145c3 (diff)
Don't send empty name attribute on tags without names.
Diffstat (limited to 'server')
-rw-r--r--server/src/widgetgenerator.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/src/widgetgenerator.cc b/server/src/widgetgenerator.cc
index f9feb19..58f2992 100644
--- a/server/src/widgetgenerator.cc
+++ b/server/src/widgetgenerator.cc
@@ -115,7 +115,7 @@ static std::string send_macro_widget(Macro &macro,
while(p != widget.attributes.end()) {
if(p->first != "tagname" && p->first != "map") {
- result += " " + p->first + "=\"" + p->second + "\"";
+ if( ! (p->first == "name" && p->second == "") ) result += " " + p->first + "=\"" + p->second + "\"";
}
p++;
}