aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian <sebasjm@gmail.com>2021-08-17 09:44:21 -0300
committerSebastian <sebasjm@gmail.com>2021-08-17 09:44:31 -0300
commit75441f566182212881f4016034cfefdec87db864 (patch)
treeb8083a6de735b27ca80a9397d139807d685230a8
parentc61650400f2dffbbf0f57bdddc9c19d54de89aa4 (diff)
fix #6993 - using strcasecmp for purge param
-rw-r--r--src/backend/taler-merchant-httpd_private-delete-instances-ID.c2
-rw-r--r--src/backend/taler-merchant-httpd_private-delete-reserves-ID.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/taler-merchant-httpd_private-delete-instances-ID.c b/src/backend/taler-merchant-httpd_private-delete-instances-ID.c
index bb0c8e56..afcea0c9 100644
--- a/src/backend/taler-merchant-httpd_private-delete-instances-ID.c
+++ b/src/backend/taler-merchant-httpd_private-delete-instances-ID.c
@@ -44,7 +44,7 @@ delete_instances_ID (struct TMH_MerchantInstance *mi,
"purge");
if (NULL == purge_s)
purge_s = "no";
- purge = (0 == strcmp (purge_s,
+ purge = (0 == strcasecmp (purge_s,
"yes"));
if (purge)
qs = TMH_db->purge_instance (TMH_db->cls,
diff --git a/src/backend/taler-merchant-httpd_private-delete-reserves-ID.c b/src/backend/taler-merchant-httpd_private-delete-reserves-ID.c
index 96483384..c391ed0e 100644
--- a/src/backend/taler-merchant-httpd_private-delete-reserves-ID.c
+++ b/src/backend/taler-merchant-httpd_private-delete-reserves-ID.c
@@ -58,7 +58,7 @@ TMH_private_delete_reserves_ID (const struct TMH_RequestHandler *rh,
"purge");
GNUNET_assert (NULL != mi);
if ( (NULL != purge) &&
- (0 == strcmp (purge,
+ (0 == strcasecmp (purge,
"yes")) )
qs = TMH_db->purge_reserve (TMH_db->cls,
mi->settings.id,