From 8040353c3895871de50ce3c438e801c1adf0acf4 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: Fri, 16 Sep 2022 09:28:25 +0800 Subject: Rename EMBED_URL to EMBEDDED_URL --- shopify.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/shopify.c b/shopify.c index 1ca8918..d272727 100644 --- a/shopify.c +++ b/shopify.c @@ -38,8 +38,8 @@ #define FRAME_HEADER "frame-ancestors https://%s https://admin.shopify.com;" #define FRAME_HEADER_LEN strlen(FRAME_HEADER) - strlen("%s") -#define EMBED_URL "https://%s/apps/%s/" -#define EMBED_URL_LEN strlen(EMBED_URL) - strlen("%s") * 2 +#define EMBEDDED_URL "https://%s/apps/%s/" +#define EMBEDDED_URL_LEN strlen(EMBEDDED_URL) - strlen("%s") * 2 extern inline void crypt_init(); extern inline bool crypt_maccmp(const char *, const char *, const char *); @@ -166,8 +166,8 @@ bool shopify_valid(struct MHD_Connection *conn, const char *url, static inline int redirect(const char *host, const char *id, struct MHD_Connection *conn, struct MHD_Response **resp) { - char url[EMBED_URL_LEN + strlen(host) + strlen(id) + 1]; - sprintf(url, EMBED_URL, host, id); + char url[EMBEDDED_URL_LEN + strlen(host) + strlen(id) + 1]; + sprintf(url, EMBEDDED_URL, host, id); *resp = MHD_create_response_from_buffer(0, "", MHD_RESPMEM_PERSISTENT); MHD_add_response_header(*resp, "Location", url); return MHD_queue_response(conn, MHD_HTTP_PERMANENT_REDIRECT, *resp); -- cgit v1.2.3