Skip to content
Commit 914c661b authored by Jo-Philipp Wich's avatar Jo-Philipp Wich
Browse files

luci-base: ensure that file upload values have length



Ensure that the (table) length of a file upload value has nonzero length
by initializing the first table index with the file name.

This fixes tests in the form

    x = luci.http.formvalue(...)
    if x and #x > 0 then ... end

Fixes #1763.
Signed-off-by: default avatarJo-Philipp Wich <jo@mein.io>
parent 0c30ee07
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