summaryrefslogtreecommitdiff
path: root/server/src/templatelist.cc
diff options
context:
space:
mode:
authordeva <deva>2010-05-07 09:31:26 +0000
committerdeva <deva>2010-05-07 09:31:26 +0000
commit965e43178736e6635cf27410e6d73f4ec0fdced2 (patch)
tree7cc297f68e93f6974baaf185259ac88f35df0355 /server/src/templatelist.cc
parent3241d29dec9beb0c367340465bd8d9bcab863692 (diff)
LOTS of changes. libmicrohttpd fix for 'chunked' POST handling and LUA parameter checker from Pentominos among other things.
Diffstat (limited to 'server/src/templatelist.cc')
-rw-r--r--server/src/templatelist.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/server/src/templatelist.cc b/server/src/templatelist.cc
index b8e8462..af03586 100644
--- a/server/src/templatelist.cc
+++ b/server/src/templatelist.cc
@@ -39,6 +39,11 @@ TemplateList::TemplateList(std::string path)
void TemplateList::addFile(std::string file)
{
+ if(file.substr(file.size() - 4) != ".xml") {
+ PRACRO_DEBUG(templatelist, "Skipping file: %s\n", file.c_str());
+ return;
+ }
+
PRACRO_DEBUG(templatelist, "Adding file: %s\n", file.c_str());
TemplateHeaderParser parser(file);
try {