diff options
author | Dirk Brenken <dev@brenken.org> | 2019-06-29 19:26:07 +0200 |
---|---|---|
committer | Dirk Brenken <dev@brenken.org> | 2019-06-29 19:26:07 +0200 |
commit | f73da9ca82ff8e0352c3942ea78ab7d1d0317668 (patch) | |
tree | c4f988db0f2bb8049230cefe52469b54c6007178 /applications/luci-app-ocserv/luasrc/model/cbi | |
parent | 86fd703bae2089cfd0dd7e06c1dd20c4b956767a (diff) |
system-wide: fix escaping of magic chars
* fix escaping of magic lua chars (#2800)
* fix redundant second gsub line in shellstartsqescape function
* fix return value of shellstartsqescape function
Signed-off-by: Dirk Brenken <dev@brenken.org>
Diffstat (limited to 'applications/luci-app-ocserv/luasrc/model/cbi')
-rw-r--r-- | applications/luci-app-ocserv/luasrc/model/cbi/ocserv/users.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/applications/luci-app-ocserv/luasrc/model/cbi/ocserv/users.lua b/applications/luci-app-ocserv/luasrc/model/cbi/ocserv/users.lua index 0fa997c8b3..3736471f5d 100644 --- a/applications/luci-app-ocserv/luasrc/model/cbi/ocserv/users.lua +++ b/applications/luci-app-ocserv/luasrc/model/cbi/ocserv/users.lua @@ -26,7 +26,7 @@ pwd.password = false function pwd.write(self, section, value) local pass - if string.match(value, "^\$%d\$.*") then + if string.match(value, "^%$%d%$.*") then pass = value else local t = tonumber(nixio.getpid()*os.time()) |