Merge pull request #26 from andrbmgi/master

fix for APs > maxResults creating invalid json, resulting in empty APlist
This commit is contained in:
Stefan Kremser
2017-02-18 11:18:18 +01:00
committed by GitHub
2 changed files with 3 additions and 3 deletions

View File

@@ -70,7 +70,7 @@ String APScan::getResults(){
json += "\"vendor\": \""+getAPVendor(i)+"\","; json += "\"vendor\": \""+getAPVendor(i)+"\",";
json += "\"selected\": "+getAPSelected(i); json += "\"selected\": "+getAPSelected(i);
json += "}"; json += "}";
if(i!=results-1) json += ","; if((i!=results-1) && (i!=maxResults-1)) json += ",";
} }
json += "] }"; json += "] }";
return json; return json;

File diff suppressed because one or more lines are too long