summaryrefslogtreecommitdiff
path: root/server/src/server.cc
diff options
context:
space:
mode:
authordeva <deva>2008-06-09 13:48:06 +0000
committerdeva <deva>2008-06-09 13:48:06 +0000
commit775021103ccd27d8be5aa92cc3cd21ce6c547c48 (patch)
treed19599a96933b812549d90d6a6da6fbaad4d5c8d /server/src/server.cc
parent4d39f5e52e1ca9e26a397eb4bcc2fe7bad18cdfe (diff)
Added xml encoding of the lua programs to make sure they are not interrupting the xml.
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++;
}