summaryrefslogtreecommitdiff
path: root/src/backend
diff options
context:
space:
mode:
authorSebastian <sebasjm@gmail.com>2023-07-17 13:07:48 -0300
committerSebastian <sebasjm@gmail.com>2023-07-17 13:07:48 -0300
commitbee861dd4a0c9e332546424749ce879a00a79f94 (patch)
tree1cbce4a978ee7590fc0d798a42871058dfce08e4 /src/backend
parent450ffb02f77fe27ee7168909138bd2e3cb824436 (diff)
downloadmerchant-bee861dd4a0c9e332546424749ce879a00a79f94.tar.gz
merchant-bee861dd4a0c9e332546424749ce879a00a79f94.tar.bz2
merchant-bee861dd4a0c9e332546424749ce879a00a79f94.zip
if the file does not have an extension, ignore it instead of breaking
Diffstat (limited to 'src/backend')
-rw-r--r--src/backend/taler-merchant-httpd_spa.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/backend/taler-merchant-httpd_spa.c b/src/backend/taler-merchant-httpd_spa.c
index 3bb451c2..e1168bd3 100644
--- a/src/backend/taler-merchant-httpd_spa.c
+++ b/src/backend/taler-merchant-httpd_spa.c
@@ -187,7 +187,9 @@ build_webui (void *cls,
mime = NULL;
ext = strrchr (dn, '.');
- GNUNET_assert (NULL != ext);
+ if (ext == NULL)
+ return GNUNET_OK;
+
ext++;
for (unsigned int i = 0; NULL != mime_map[i].ext; i++)
if (0 == strcasecmp (ext,