mirror of
https://github.com/fergalmoran/chrometophone.git
synced 2025-12-22 09:41:51 +00:00
Rollback XSS for Firefox temporarily
This commit is contained in:
@@ -52,7 +52,8 @@ public class SendServlet extends HttpServlet {
|
|||||||
resp.setContentType("text/plain");
|
resp.setContentType("text/plain");
|
||||||
|
|
||||||
// Basic XSRF protection
|
// Basic XSRF protection
|
||||||
if (req.getHeader("X-Extension") == null) {
|
if (req.getHeader("X-Extension") == null &&
|
||||||
|
req.getHeader("User-Agent").indexOf("Firefox") == -1) { // TODO: Remove exception for Firefox
|
||||||
resp.setStatus(400);
|
resp.setStatus(400);
|
||||||
resp.getWriter().println(ERROR_STATUS + " You are using an old version of the extension that is no " +
|
resp.getWriter().println(ERROR_STATUS + " You are using an old version of the extension that is no " +
|
||||||
"longer supported. Please install v0.2 or later of the extension " +
|
"longer supported. Please install v0.2 or later of the extension " +
|
||||||
|
|||||||
Reference in New Issue
Block a user