summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--config/process_put.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/config/process_put.lua b/config/process_put.lua
index e203cf0..0194e46 100644
--- a/config/process_put.lua
+++ b/config/process_put.lua
@@ -27,10 +27,10 @@ end
local params = functions.get_device_params(device_id)
function process_polycom()
- local before, xml, after = string.match(data, "(.*<OVERRIDES)([^/]*)(/>.*)")
+ local before, xml, after = string.match(data, "(.*<OVERRIDES)(.*)(/>.*)")
if not xml then return end
local attrs = {}
- for str in string.gmatch(xml, "%S+") do
+ for str in string.gmatch(xml, "%S+=\"[^\"]*\"") do
local n,v = string.match(str, "([^=]+)=\"(.*)\"")
if not attrs[n] then
attrs[n] = v