diff options
author | Ted Trask <ttrask01@yahoo.com> | 2015-09-21 14:55:56 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2015-09-21 14:55:56 +0000 |
commit | ea2c5937d25cfae4da61cf800944436f1659cdb4 (patch) | |
tree | a69f6bb93f0665dc8739395aafe420055595e5e7 | |
parent | bc25343e28bcd89fc9ba1e77ce2ebb1b3166cdcb (diff) | |
download | acf-provisioning-ea2c5937d25cfae4da61cf800944436f1659cdb4.tar.bz2 acf-provisioning-ea2c5937d25cfae4da61cf800944436f1659cdb4.tar.xz |
Fix provisioning.cgi to only process PUTs for .cfg files
This was causing a problem with Polycoms PUTing .tar.gz files.
-rwxr-xr-x | cgi-bin/provisioning.cgi | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/cgi-bin/provisioning.cgi b/cgi-bin/provisioning.cgi index 0e7e5be..20f08e1 100755 --- a/cgi-bin/provisioning.cgi +++ b/cgi-bin/provisioning.cgi @@ -153,9 +153,10 @@ elseif ( request_method == "PUT" ) then os.exit() end - -- Don't bother for .log, -calls.xml (VVX related) and -directory.xml files + -- We will only process .cfg files + -- Don't bother for .log, -calls.xml (VVX related), -directory.xml, ... files local f = string.match(basename, mac.."(.*)") - if not ( string.match(path_info, "%.log$") or string.match(path_info, "%-calls.xml$") or string.match(path_info, "%-directory.xml$") ) then + if string.match(path_info, "%.cfg$") then log:write("Checking PROV Table for results\n") -- Load the ACF mvc mvc = require("acf.mvc") |