Rollback XSS for Firefox temporarily

This commit is contained in:
burke.davey
2010-06-12 00:35:33 +00:00
parent 5a9da97f81
commit 9d7e78abea

View File

@@ -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 " +