mirror of
https://github.com/UtilitechAS/amsreader-firmware.git
synced 2026-01-12 00:02:53 +00:00
Fixed context bug
This commit is contained in:
parent
c74e719327
commit
16fb1ea87c
@ -722,7 +722,11 @@ void AmsWebServer::indexHtml() {
|
||||
config->getWebConfig(webConfig);
|
||||
stripNonAscii((uint8_t*) webConfig.context, 32);
|
||||
if(strlen(webConfig.context) > 0) {
|
||||
context = "/" + String(webConfig.context) + "/";
|
||||
context = String(webConfig.context);
|
||||
context.replace(" ", "");
|
||||
if(!context.isEmpty()) {
|
||||
context = "/" + context + "/";
|
||||
}
|
||||
}
|
||||
|
||||
if(context.isEmpty()) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user