diff options
author | KHobbits <rob@khobbits.co.uk> | 2011-09-22 17:50:42 +0100 |
---|---|---|
committer | KHobbits <rob@khobbits.co.uk> | 2011-09-22 17:50:42 +0100 |
commit | d9ceb727efc3697f4d279a73b1d6a27ff1dc4826 (patch) | |
tree | 1a70063efd54af5141eaec7e21bf28b1e1a0e1e2 | |
parent | e9c0bb2133f57db55916f7fa6f6a67f73419cf25 (diff) | |
download | Essentials-d9ceb727efc3697f4d279a73b1d6a27ff1dc4826.tar Essentials-d9ceb727efc3697f4d279a73b1d6a27ff1dc4826.tar.gz Essentials-d9ceb727efc3697f4d279a73b1d6a27ff1dc4826.tar.lz Essentials-d9ceb727efc3697f4d279a73b1d6a27ff1dc4826.tar.xz Essentials-d9ceb727efc3697f4d279a73b1d6a27ff1dc4826.zip |
Fix for home names containing invalid characters.
-rw-r--r-- | Essentials/src/com/earth2me/essentials/UserData.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Essentials/src/com/earth2me/essentials/UserData.java b/Essentials/src/com/earth2me/essentials/UserData.java index 75d126c3e..39cebbd2a 100644 --- a/Essentials/src/com/earth2me/essentials/UserData.java +++ b/Essentials/src/com/earth2me/essentials/UserData.java @@ -154,6 +154,8 @@ public abstract class UserData extends PlayerExtension implements IConf public void setHome(String name, Location loc) { + //Invalid names will corrupt the yaml + name = Util.sanitizeFileName(name); homes.put(name, loc); config.setProperty("homes." + name, loc); config.save(); |