mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2024-12-24 18:19:03 +01:00
added input filter for json parser
This commit is contained in:
parent
44db374e09
commit
40238a9d25
@ -18,7 +18,6 @@
|
||||
*/
|
||||
package com.sk89q.worldguard.bukkit;
|
||||
|
||||
import com.nijikokun.bukkit.iConomy.iConomy;
|
||||
import java.util.logging.*;
|
||||
import org.bukkit.command.Command;
|
||||
import org.bukkit.command.CommandSender;
|
||||
|
@ -75,6 +75,15 @@ private static String readFileAsString(File file) throws java.io.IOException {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
for(int i = 0; i < buffer.length; i++)
|
||||
{
|
||||
if(buffer[i] < 0x20 || buffer[i] > 0x126)
|
||||
{
|
||||
buffer[i] = 0x20;
|
||||
}
|
||||
}
|
||||
|
||||
return new String(buffer);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user