mirror of
https://github.com/Doodle3D/doodle3d-firmware.git
synced 2024-12-22 11:03:48 +01:00
url encode wifiboxid for signin
This commit is contained in:
parent
2d686d94d2
commit
3e8fe104c9
@ -4,6 +4,7 @@ local uci = require('uci').cursor()
|
||||
local iwinfo = require('iwinfo')
|
||||
local settings = require('util.settings')
|
||||
local wifi = require("network.wlanconfig")
|
||||
local urlcode = require('util.urlcode')
|
||||
|
||||
local M = {}
|
||||
|
||||
@ -19,6 +20,7 @@ function M.signin()
|
||||
end
|
||||
|
||||
local wifiboxid = wifi.getSubstitutedSsid(settings.get('network.cl.wifiboxid'))
|
||||
wifiboxid = urlcode.escape(wifiboxid)
|
||||
|
||||
local cmd = "wget -q -T 2 -t 1 -O - "..baseurl.."?wifiboxid="..wifiboxid.."\\&localip="..localip;
|
||||
local output = utils.captureCommandOutput(cmd);
|
||||
|
Loading…
Reference in New Issue
Block a user