This commit is contained in:
zefie
2025-08-12 22:07:32 -04:00
parent f9c5e216a4
commit d990cfb0c4

View File

@@ -20,7 +20,7 @@ if (auth === true) {
let v = request_headers.query[k];
// enable_multi_query may send ["false", "on"] for checkboxes due to webtvism
if (util.isArray(v)) v = v[(v.length - 1)];
if (Array.isArray(v)) v = v[(v.length - 1)];
// convert numbers back to int before writing to config
if (!isNaN(parseInt(v))) v = parseInt(v);