]> git.ipfire.org Git - ipfire.org.git/commitdiff
base: Add more boolean values
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 16 Feb 2026 18:47:10 +0000 (18:47 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 16 Feb 2026 18:47:10 +0000 (18:47 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/web/base.py

index edc35c931e64799731efe1a13be849f4ca456bdb..7cdbac31acb857ed404479c986ab468ef57ad6f3 100644 (file)
@@ -231,11 +231,11 @@ class BaseHandler(tornado.web.RequestHandler):
                arg = arg.lower()
 
                # Return True
-               if arg in ("on", "true", "1"):
+               if arg in ("on", "true", "yes", "1"):
                        return True
 
                # Return False
-               elif arg in ("off", "false", "0"):
+               elif arg in ("off", "false", "no", "0"):
                        return False
 
                # Fail on anything else