From b62d6fb2b57bed01cf1a2f1214f349fa6919d962 Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Wed, 31 Jan 2018 15:55:14 +0100 Subject: [PATCH] webui: report broken intlconf, too --- src/webui/webui.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/webui/webui.c b/src/webui/webui.c index 28682c3d9..e55ed8d57 100644 --- a/src/webui/webui.c +++ b/src/webui/webui.c @@ -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); -- 2.47.3