summaryrefslogtreecommitdiff
path: root/server/src/server.cc
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/server.cc')
-rw-r--r--server/src/server.cc10
1 files changed, 2 insertions, 8 deletions
diff --git a/server/src/server.cc b/server/src/server.cc
index 2ea782d..a94a0f8 100644
--- a/server/src/server.cc
+++ b/server/src/server.cc
@@ -47,6 +47,7 @@
#include "widgetgenerator.h"
#include "resumeparser.h"
#include "journal_commit.h"
+#include "xml_encode_decode.h"
static std::string error_box(std::string message)
{
@@ -178,22 +179,15 @@ static void connection(TCPSocket &socket)
std::vector< LUAProgram >::iterator lpi = m->luaprograms.begin();
while(lpi != m->luaprograms.end()) {
answer += " <luaprogram name=\"" + lpi->attributes["name"] + "\">\n";
-
- answer += lpi->attributes["lua"];
-
+ answer += xml_encode(lpi->attributes["lua"]);
answer += "\n </luaprogram>\n";
-
lpi++;
}
-
answer += " </luaprograms>\n";
}
-
answer += widgetgenerator(*m, lqm, db);
}
-
answer += " </macro>\n";
-
mi2++;
}