]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
webui: fix the wrong return values for css redirs
authorJaroslav Kysela <perex@perex.cz>
Sat, 26 Mar 2016 17:59:03 +0000 (18:59 +0100)
committerJaroslav Kysela <perex@perex.cz>
Sat, 26 Mar 2016 17:59:03 +0000 (18:59 +0100)
src/webui/webui.c

index 689f29dbe9df6017c61338347aead9d31b08858e..c35bd2b384a583c07aa694c4e4273941f739d3fe 100644 (file)
@@ -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;
     }
   }