Skip to content

Commit

Permalink
evil portal can manage more than two form field, logging every "name:…
Browse files Browse the repository at this point in the history
… value" from the form - fixed stupid error
  • Loading branch information
MACCHINA\Harold Finch committed Jan 2, 2024
1 parent df45573 commit f886087
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions esp32_marauder/EvilPortal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ void EvilPortal::setupServer() {
int params = request->params();
for(int i=0; i < params; i++){
AsyncWebParameter* p = request->getParam(i);
this->params_log += p->name + ": " + p->value;
this->params_log += p->name() + ": " + p->value();
this->something_received = true;
}

Expand Down Expand Up @@ -307,7 +307,7 @@ void EvilPortal::main(uint8_t scan_mode) {
if (this->something_received) {
this->something_received = false;

if (this->params_log.length)
if (this->params_log.length() > 0)
this->params_log = this->params_log + "\n";
Serial.print(this->params_log);
this->addLog(this->params_log, this->params_log.length());
Expand Down

0 comments on commit f886087

Please sign in to comment.