package utils;

public class Filter {
	public static String xss(String input){
		input=input.replaceAll("</", " ");
		input = input.replaceAll("/>", " "); 
		input=input.replaceAll("<", " ");
		input = input.replaceAll(">", " "); 
		return input;
	}
}


@@ -74,18 +74,113 @@
 put)
+ 
 %7B%0A%09%09
-input=
+// Some fields are optional so allow for null here%0A%09%09if (input == null)%0A%09%09%09return input;%0A%0A%09%09input = 
 inpu
@@ -251,17 +251,19 @@
 %0A%09%09input
-=
+ = 
 input.re

Fix nullptr exception when input to filter is null