mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-12-25 02:27:43 +01:00
Fixed #313
This commit is contained in:
parent
b36712113f
commit
d27b71e112
@ -4,7 +4,6 @@ import main.java.com.djrapitops.plan.Plan;
|
|||||||
import main.java.com.djrapitops.plan.Settings;
|
import main.java.com.djrapitops.plan.Settings;
|
||||||
import main.java.com.djrapitops.plan.systems.webserver.WebServer;
|
import main.java.com.djrapitops.plan.systems.webserver.WebServer;
|
||||||
import main.java.com.djrapitops.plan.utilities.MiscUtils;
|
import main.java.com.djrapitops.plan.utilities.MiscUtils;
|
||||||
import org.apache.commons.lang3.StringUtils;
|
|
||||||
import org.apache.commons.lang3.text.StrSubstitutor;
|
import org.apache.commons.lang3.text.StrSubstitutor;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
@ -68,7 +67,7 @@ public class HtmlUtils {
|
|||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
public static String removeXSS(String string) {
|
public static String removeXSS(String string) {
|
||||||
return StringUtils.removeAll(string, "(<!--)|(-->)|(</?script>)");
|
return string.replace("<!--", "").replace("-->", "").replace("</script>", "");
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -89,7 +88,7 @@ public class HtmlUtils {
|
|||||||
string = Html.SPAN.parse(string);
|
string = Html.SPAN.parse(string);
|
||||||
}
|
}
|
||||||
|
|
||||||
return StringUtils.remove(string, "§r");
|
return string.replace("§r", "");
|
||||||
}
|
}
|
||||||
|
|
||||||
public static String separateWithQuotes(String... strings) {
|
public static String separateWithQuotes(String... strings) {
|
||||||
|
Loading…
Reference in New Issue
Block a user