aboutsummaryrefslogtreecommitdiff
path: root/src/backend/taler-merchant-httpd_helper.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2021-07-21 17:32:18 +0200
committerChristian Grothoff <christian@grothoff.org>2021-07-21 17:32:18 +0200
commit245a7eb5b63bdc18ab1b41738d5ba12884afc7e0 (patch)
treeb315216c740c9de6e14167ecb2928e435853ad01 /src/backend/taler-merchant-httpd_helper.c
parent0eee3574dcb7bf1971a2e106f666caa41f8589f3 (diff)
-fix test regressions
Diffstat (limited to 'src/backend/taler-merchant-httpd_helper.c')
-rw-r--r--src/backend/taler-merchant-httpd_helper.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/backend/taler-merchant-httpd_helper.c b/src/backend/taler-merchant-httpd_helper.c
index 20be2b45..b869770f 100644
--- a/src/backend/taler-merchant-httpd_helper.c
+++ b/src/backend/taler-merchant-httpd_helper.c
@@ -106,8 +106,8 @@ TMH_image_data_url_valid (const char *image_data_url)
image_data_url,
strlen ("data:image/")))
return false;
- if (NULL == strstr (";base64,",
- image_data_url))
+ if (NULL == strstr (image_data_url,
+ ";base64,"))
return false;
// FIXME: write generic URI syntax validation */
return true;
@@ -173,6 +173,7 @@ TMH_setup_wire_account (const char *payto_uri)
return wm;
}
+
enum GNUNET_GenericReturnValue
TMH_check_auth_config (struct MHD_Connection *connection,
const json_t *jauth,
@@ -218,7 +219,8 @@ TMH_check_auth_config (struct MHD_Connection *connection,
TALER_MHD_reply_with_error (connection,
MHD_HTTP_BAD_REQUEST,
TALER_EC_MERCHANT_PRIVATE_POST_INSTANCES_BAD_AUTH,
- "bad authentication config")) ? GNUNET_NO : GNUNET_SYSERR;
+ "bad authentication config")) ?
+ GNUNET_NO : GNUNET_SYSERR;
}
return GNUNET_OK;
}