Fix #178 wrong check on parsing variable aprilfoolsmode
This commit is contained in:
parent
4692cc297a
commit
2e8b896f3b
@ -410,7 +410,7 @@ public class Server : GlobalBase
|
||||
break;
|
||||
case "Settings/AprilFoolsMode":
|
||||
if (!requestVariables.TryGetValue("enabled", out string? aprilFoolsModeEnabledStr) ||
|
||||
bool.TryParse(aprilFoolsModeEnabledStr, out bool aprilFoolsModeEnabled))
|
||||
!bool.TryParse(aprilFoolsModeEnabledStr, out bool aprilFoolsModeEnabled))
|
||||
{
|
||||
SendResponse(HttpStatusCode.BadRequest, response);
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user