Skip to content
Commit e2e26964 authored by Hannu Nyman's avatar Hannu Nyman
Browse files

luci-base: fix bug in util.lua in 'shellsqescape'



Fix a bug introduced by #561

Function 'shellsqescape' calls 'gsub' with the empty result string 'res'
instead of the actual parameter 'value'. This leads into error:
.../util.lua:160: bad argument #1 to 'gsub' (string expected, got nil)

Fix error by passing the correct parameter to the function.

After the fix, the unmount button introduced by #561 finally works.

Signed-off-by: default avatarHannu Nyman <hannu.nyman@iki.fi>
parent 355c2130
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment