mirror of
https://github.com/UtilitechAS/amsreader-firmware.git
synced 2026-04-29 13:22:59 +00:00
Fixed context bug
This commit is contained in:
@@ -722,7 +722,11 @@ void AmsWebServer::indexHtml() {
|
|||||||
config->getWebConfig(webConfig);
|
config->getWebConfig(webConfig);
|
||||||
stripNonAscii((uint8_t*) webConfig.context, 32);
|
stripNonAscii((uint8_t*) webConfig.context, 32);
|
||||||
if(strlen(webConfig.context) > 0) {
|
if(strlen(webConfig.context) > 0) {
|
||||||
context = "/" + String(webConfig.context) + "/";
|
context = String(webConfig.context);
|
||||||
|
context.replace(" ", "");
|
||||||
|
if(!context.isEmpty()) {
|
||||||
|
context = "/" + context + "/";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if(context.isEmpty()) {
|
if(context.isEmpty()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user