summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpriscilla <priscilla.huang@efrei.net>2023-02-02 05:26:19 -0500
committerpriscilla <priscilla.huang@efrei.net>2023-02-02 05:26:19 -0500
commit2e3962325c2df01f36423cbc979ea08c1cb6eeaf (patch)
tree07f664eab9606f6fb3688c5f6d28ec0b2b69b7b1
parentded3b469c3f1ee6e8ebe43ad8788fb62c41e48af (diff)
downloadmerchant-2e3962325c2df01f36423cbc979ea08c1cb6eeaf.tar.gz
merchant-2e3962325c2df01f36423cbc979ea08c1cb6eeaf.tar.bz2
merchant-2e3962325c2df01f36423cbc979ea08c1cb6eeaf.zip
allow patch template to edit when image is null
l---------src/backend/.#taler-merchant-httpd.c1
-rw-r--r--src/backend/taler-merchant-httpd_helper.c4
2 files changed, 3 insertions, 2 deletions
diff --git a/src/backend/.#taler-merchant-httpd.c b/src/backend/.#taler-merchant-httpd.c
deleted file mode 120000
index 37ec71da..00000000
--- a/src/backend/.#taler-merchant-httpd.c
+++ /dev/null
@@ -1 +0,0 @@
-priscilla@dhcp-147-87-107-42.2280:1675328542 \ No newline at end of file
diff --git a/src/backend/taler-merchant-httpd_helper.c b/src/backend/taler-merchant-httpd_helper.c
index f6f80d1c..56a11d94 100644
--- a/src/backend/taler-merchant-httpd_helper.c
+++ b/src/backend/taler-merchant-httpd_helper.c
@@ -296,7 +296,9 @@ bool
TMH_image_data_url_valid (const char *image_data_url)
{
if (0 == strcmp (image_data_url,
- NULL))
+ ""))
+ return true;
+ if (NULL == image_data_url)
return true;
if (0 != strncasecmp ("data:image/",
image_data_url,