From: Jaroslav Kysela Date: Sat, 26 Mar 2016 17:59:03 +0000 (+0100) Subject: webui: fix the wrong return values for css redirs X-Git-Tag: v4.2.1~808 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=288424e59fbf40135b21b9cb4a4fa1f530a36d64;p=thirdparty%2Ftvheadend.git webui: fix the wrong return values for css redirs --- diff --git a/src/webui/webui.c b/src/webui/webui.c index 689f29dbe..c35bd2b38 100644 --- a/src/webui/webui.c +++ b/src/webui/webui.c @@ -1798,7 +1798,7 @@ http_redir(http_connection_t *hc, const char *remain, void *opaque) return 0; } } - return 0; + return HTTP_STATUS_BAD_REQUEST; } if (!strcmp(components[0], "theme.debug.css")) { theme = access_get_theme(hc->hc_access); @@ -1810,7 +1810,7 @@ http_redir(http_connection_t *hc, const char *remain, void *opaque) return 0; } } - return 0; + return HTTP_STATUS_BAD_REQUEST; } }