From a9c4f6b3e887343fd0cc182e3ac48e78155a5bd8 Mon Sep 17 00:00:00 2001
From: shennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>
Date: Tue, 20 Dec 2011 03:43:20 +0000
Subject: 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
---
 src/char_sql/char.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'src')

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]
-- 
cgit v1.2.3-70-g09d2