luci-base: Add function for shell single-quote parameter escaping
authorDaniel Dickinson <openwrt@daniel.thecshore.com>
Wed, 2 Dec 2015 04:47:42 +0000 (23:47 -0500)
committerDaniel Dickinson <openwrt@daniel.thecshore.com>
Wed, 2 Dec 2015 07:19:02 +0000 (02:19 -0500)
commit829467b62748e8c4fb587636801fa03165f72e8a
treef152a2622de5e21372aaa813e0d2e13ecaeda033
parent1d5cab4ced656d71e1913470b8b06e051bd492d3
luci-base: Add function for shell single-quote parameter escaping

When using os.execute or luci.sys.call the shell is called with the
command line which means that standard shell interpretation of strings
occurs.  To allow to use these commands more easily we add functions
for properly escaping single-quoted strings used on the command line
modules/luci-base/luasrc/util.lua