Skip to content

Instantly share code, notes, and snippets.

@w39hh
w39hh / XSSRequestWrapper.java
Created January 26, 2022 19:30 — forked from madoke/XSSRequestWrapper.java
Stronger Anti Cross-Site Scripting (XSS) Filter for Java Web Apps
package pt.impresa.iweb.filters.request;
import java.io.IOException;
import java.text.Normalizer;
import java.util.Collections;
import java.util.Enumeration;
import java.util.HashMap;
import java.util.Map;
import java.util.Set;
import java.util.regex.Pattern;