]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
webui: try and prevent login loops by replacing the "Default Login" link with logout
authorMark Clarkstone <hello@markclarkstone.co.uk>
Mon, 27 Mar 2017 14:11:49 +0000 (15:11 +0100)
committerJaroslav Kysela <perex@perex.cz>
Mon, 27 Mar 2017 15:41:13 +0000 (17:41 +0200)
src/http.c

index 321a25dbdfc6ea5c13befad859126afc2ace3755..f2baf62686fd188be86016e52cc50e9aa79a7e38 100644 (file)
@@ -580,7 +580,7 @@ http_error(http_connection_t *hc, int error)
                    error, errtxt, error, errtxt);
 
     if (error == HTTP_STATUS_UNAUTHORIZED)
-      htsbuf_qprintf(&hc->hc_reply, "<P><A HREF=\"%s/\">Default Login</A></P>",
+      htsbuf_qprintf(&hc->hc_reply, "<P><A HREF=\"%s/logout\">Default Login</A></P>",
                      tvheadend_webroot ? tvheadend_webroot : "");
 
     htsbuf_append_str(&hc->hc_reply, "</BODY></HTML>\r\n");