From 2e97a427206693a99c65ec6474236fc3825f824e Mon Sep 17 00:00:00 2001 From: Robin van Genderen Date: Tue, 2 Jul 2019 12:25:00 +0200 Subject: [PATCH] if value is true or false convert it to a boolean --- webapp_admin/webapp_admin.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/webapp_admin/webapp_admin.py b/webapp_admin/webapp_admin.py index 2d27181..a40e4a5 100755 --- a/webapp_admin/webapp_admin.py +++ b/webapp_admin/webapp_admin.py @@ -462,6 +462,10 @@ def advanced_inject(user, data, value_type='string'): split_data = data.split('=') value = split_data[1].lstrip().rstrip() + if value.lower() == 'true': + value = True + elif value.lower() == 'false': + value = False if value_type == 'list': value = value.split(',')