From 37b9bddbb7f95b9b62d9a5cdcc17dc1ef7d27292 Mon Sep 17 00:00:00 2001 From: totoro Date: Fri, 5 May 2023 11:05:13 +0900 Subject: [PATCH] [!] fix the the get_DB_id() function from web arguments to considerate the the empty string "" as none DB_id --- web/web_arg_utils.anubis | 3 +++ 1 file changed, 3 insertions(+), 0 deletions(-) diff --git a/web/web_arg_utils.anubis b/web/web_arg_utils.anubis index 32b05b2..9defeaa 100644 --- a/web/web_arg_utils.anubis +++ b/web/web_arg_utils.anubis @@ -141,9 +141,12 @@ public define Maybe(DB_id) { not_found then failure, found(value) then + println("get_mb_DB_id value '"+value+"'"); //Check if value is none which means no id provided if value="none" then success(none) + else if value = "" then + success(none) else //Now try to convert the string into Int to get the id if decimal_scan(value) is -- libgit2 0.21.4