luci-base: fix bug in util.lua in 'shellsqescape'
[project/luci.git] / modules / luci-base / luasrc / util.lua
index 5bf0beb..2956aad 100644 (file)
@@ -157,7 +157,7 @@ end
 -- command line parameter).
 function shellsqescape(value)
    local res
-   res, _ = string.gsub(res, "'", "'\\''")
+   res, _ = string.gsub(value, "'", "'\\''")
    return res
 end