diff options
author | shennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2011-12-20 03:43:20 +0000 |
---|---|---|
committer | shennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2011-12-20 03:43:20 +0000 |
commit | a9c4f6b3e887343fd0cc182e3ac48e78155a5bd8 (patch) | |
tree | 916f15662012224b6461720f4b6e76d870b2a219 /src | |
parent | 59c5b131644b8caedae22f6e716cddab90512dae (diff) | |
download | hercules-a9c4f6b3e887343fd0cc182e3ac48e78155a5bd8.tar.gz hercules-a9c4f6b3e887343fd0cc182e3ac48e78155a5bd8.tar.bz2 hercules-a9c4f6b3e887343fd0cc182e3ac48e78155a5bd8.tar.xz hercules-a9c4f6b3e887343fd0cc182e3ac48e78155a5bd8.zip |
fixed char server from creating character names with \255 and \xA0 (exploitable characters). fix for bugreport:4166
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15168 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src')
-rw-r--r-- | src/char_sql/char.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/char_sql/char.c b/src/char_sql/char.c index 745209ef6..b1f4a1c94 100644 --- a/src/char_sql/char.c +++ b/src/char_sql/char.c @@ -104,7 +104,7 @@ int char_new_display = 0; bool name_ignoring_case = false; // Allow or not identical name for characters but with a different case by [Yor] int char_name_option = 0; // Option to know which letters/symbols are authorised in the name of a character (0: all, 1: only those in char_name_letters, 2: all EXCEPT those in char_name_letters) by [Yor] char unknown_char_name[NAME_LENGTH] = "Unknown"; // Name to use when the requested name cannot be determined -#define TRIM_CHARS "\032\t\x0A\x0D " //The following characters are trimmed regardless because they cause confusion and problems on the servers. [Skotlex] +#define TRIM_CHARS "\255\xA0\032\t\x0A\x0D " //The following characters are trimmed regardless because they cause confusion and problems on the servers. [Skotlex] char char_name_letters[1024] = ""; // list of letters/symbols allowed (or not) in a character name. by [Yor] int char_per_account = 0; //Maximum charas per account (default unlimited) [Sirius] |