]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
webui: report broken intlconf, too
authorJaroslav Kysela <perex@perex.cz>
Wed, 31 Jan 2018 14:55:14 +0000 (15:55 +0100)
committerJaroslav Kysela <perex@perex.cz>
Wed, 31 Jan 2018 14:55:14 +0000 (15:55 +0100)
src/webui/webui.c

index 28682c3d950f013543c73987baab0e4c63b65615..e55ed8d576d99c72012e4966d430ecd54d243859 100644 (file)
@@ -1475,8 +1475,11 @@ http_serve_file(http_connection_t *hc, const char *fname,
       basename++; /* Skip '/' */
       str0 = intlconv_utf8safestr(intlconv_charset_id("ASCII", 1, 1),
                                   basename, strlen(basename) * 3);
-      if (str0 == NULL)
+      if (str0 == NULL) {
+        tvherror(LS_HTTP, "unable to convert filename '%s' to a safe form using charset '%s'",
+                 intlconv_charset_id("ASCII", 1, 1), basename);
         return HTTP_STATUS_INTERNAL;
+      }
       htsbuf_queue_init(&q, 0);
       htsbuf_append_and_escape_url(&q, basename);
       str = htsbuf_to_string(&q);