gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-merchant] branch master updated: if the file does not have an ext


From: gnunet
Subject: [taler-merchant] branch master updated: if the file does not have an extension, ignore it instead of breaking
Date: Mon, 17 Jul 2023 18:07:54 +0200

This is an automated email from the git hooks/post-receive script.

sebasjm pushed a commit to branch master
in repository merchant.

The following commit(s) were added to refs/heads/master by this push:
     new bee861dd if the file does not have an extension, ignore it instead of 
breaking
bee861dd is described below

commit bee861dd4a0c9e332546424749ce879a00a79f94
Author: Sebastian <sebasjm@gmail.com>
AuthorDate: Mon Jul 17 13:07:48 2023 -0300

    if the file does not have an extension, ignore it instead of breaking
---
 src/backend/taler-merchant-httpd_spa.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

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,

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]