From 965e43178736e6635cf27410e6d73f4ec0fdced2 Mon Sep 17 00:00:00 2001 From: deva Date: Fri, 7 May 2010 09:31:26 +0000 Subject: LOTS of changes. libmicrohttpd fix for 'chunked' POST handling and LUA parameter checker from Pentominos among other things. --- server/src/macrolist.cc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'server/src/macrolist.cc') 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 { -- cgit v1.2.3