From 775021103ccd27d8be5aa92cc3cd21ce6c547c48 Mon Sep 17 00:00:00 2001 From: deva Date: Mon, 9 Jun 2008 13:48:06 +0000 Subject: Added xml encoding of the lua programs to make sure they are not interrupting the xml. --- server/src/templateparser.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'server/src/templateparser.cc') diff --git a/server/src/templateparser.cc b/server/src/templateparser.cc index 969b4bd..1fecc20 100644 --- a/server/src/templateparser.cc +++ b/server/src/templateparser.cc @@ -87,6 +87,7 @@ TemplateParser::~TemplateParser() void TemplateParser::characterData(std::string &data) { + /* if(state == MAP) { assert(current_map); // No map present! current_map->attributes["lua"].append(data); @@ -96,6 +97,7 @@ void TemplateParser::characterData(std::string &data) assert(current_luaprogram); // No lua program present! current_luaprogram->attributes["lua"].append(data); } + */ } void TemplateParser::startTag(std::string name, std::map< std::string, std::string> attributes) -- cgit v1.2.3