Commit 191c874c authored by PhiBo's avatar PhiBo 🚀

Check if argument exists

parent 6e187442
......@@ -250,7 +250,7 @@ void handleSSID()
server->send(404, "text/plain", "SSID not set");
}
} else if (server->method() == HTTP_POST) {
if(server->args() == 0) {
if(!server->hasArg("ssid")) {
server->send(400, "text/plain", "No argument given");
return;
}
......
Markdown is supported
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