Changeset 5b0680b for apps/jetty


Ignore:
Timestamp:
Feb 24, 2018 4:43:15 PM (2 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
005f7372
Parents:
9d989c6
Message:

i2psnark standalone: Add DNS rebinding protection
Add context config file to turn it off
Console: Mark request handled when rejecting in HostCheckHandler?
XSSFilter: Catch cascaded ISE

File:
1 edited

Legend:

Unmodified
Added
Removed
  • apps/jetty/java/src/net/i2p/servlet/filters/XSSFilter.java

    r9d989c6 r5b0680b  
    3434            // the data keeps coming and the connection gets reset.
    3535            // This way we at least get the error to the browser.
    36             ((HttpServletResponse)response).sendError(413, ise.getMessage());
     36            try {
     37                ((HttpServletResponse)response).sendError(413, ise.getMessage());
     38            } catch (IllegalStateException ise2) {
     39                // Committed, probably wasn't a multipart form error after all
     40            }
    3741        }
    3842    }
Note: See TracChangeset for help on using the changeset viewer.