diff options
author | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2022-09-16 09:28:25 +0800 |
---|---|---|
committer | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2022-09-16 09:28:25 +0800 |
commit | 8040353c3895871de50ce3c438e801c1adf0acf4 (patch) | |
tree | 3d69987d19237087607655d87cd490c8ec5ba2a6 | |
parent | 57f8c0e3c0fc82f8b2452dc79a1605fb74a4416a (diff) |
Rename EMBED_URL to EMBEDDED_URL
-rw-r--r-- | shopify.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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); |