From 4bdd0d67d7dfb3eb33b60f7a9eabd99cac4ca139 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=A6=8C=EA=A6=AB=EA=A6=B6=EA=A6=8F=EA=A7=80=EA=A6=A6?= =?UTF-8?q?=EA=A6=BF=EA=A6=A7=EA=A6=AE=EA=A6=91=EA=A6=A9=EA=A6=AD=EA=A7=80?= Date: Thu, 29 Sep 2022 15:31:08 +0800 Subject: Compare carrier service name cause callback_url from them contains back slashes --- shopify.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'shopify.c') diff --git a/shopify.c b/shopify.c index e882fc5..a21e1f9 100644 --- a/shopify.c +++ b/shopify.c @@ -549,11 +549,11 @@ static enum MHD_Result handle_request(void *cls, struct MHD_Connection *con, json_object *service = json_object_array_get_idx(services, i); - json_object *url = NULL; + json_object *name = NULL; json_object_object_get_ex(service, - "callback_url", &url); - if (!strcmp(json_object_get_string(url), - carrierservice->url)) { + "callback_url", &name); + if (!strcmp(json_object_get_string(name), + carrierservice->name)) { exists = 1; break; } -- cgit v1.2.3