summaryrefslogtreecommitdiff
path: root/server/src/macrolist.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/macrolist.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/macrolist.cc')
-rw-r--r--server/src/macrolist.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/server/src/macrolist.cc b/server/src/macrolist.cc
index 954149a..908de1e 100644
--- a/server/src/macrolist.cc
+++ b/server/src/macrolist.cc
@@ -42,6 +42,11 @@ MacroList::MacroList(std::string path)
void MacroList::addFile(std::string file)
{
+ if(file.substr(file.size() - 4) != ".xml") {
+ PRACRO_DEBUG(macrolist, "Skipping file: %s\n", file.c_str());
+ return;
+ }
+
PRACRO_DEBUG(macrolist, "Adding file: %s\n", file.c_str());
MacroHeaderParser parser(file);
try {