projects
/
project
/
luci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
luci-base: fix bug in util.lua in 'shellsqescape'
[project/luci.git]
/
modules
/
luci-base
/
luasrc
/
util.lua
diff --git
a/modules/luci-base/luasrc/util.lua
b/modules/luci-base/luasrc/util.lua
index
5bf0beb
..
2956aad
100644
(file)
--- a/
modules/luci-base/luasrc/util.lua
+++ b/
modules/luci-base/luasrc/util.lua
@@
-157,7
+157,7
@@
end
-- command line parameter).
function shellsqescape(value)
local res
- res, _ = string.gsub(
res
, "'", "'\\''")
+ res, _ = string.gsub(
value
, "'", "'\\''")
return res
end