Fixed regex injection
This commit is contained in:
parent
32e38ef32b
commit
35ad214901
|
|
@ -12,7 +12,8 @@ public class ModifiableString {
|
|||
}
|
||||
|
||||
public void replace(String match, String replace) {
|
||||
this.string = string.replaceAll(match, replace);
|
||||
while (string.contains(match))
|
||||
string = string.replace(match, replace);
|
||||
}
|
||||
|
||||
public String string() {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user