diff options
author | shennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2012-03-17 21:45:34 +0000 |
---|---|---|
committer | shennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2012-03-17 21:45:34 +0000 |
commit | 012234bf93680d53c1f62cb14306fe26e5975957 (patch) | |
tree | 17ceb6ea7125fe2fabdf4f76c00f45fcc0313cd2 | |
parent | e2f8480ab82bfffd146921034a4188035c802991 (diff) | |
download | hercules-012234bf93680d53c1f62cb14306fe26e5975957.tar.gz hercules-012234bf93680d53c1f62cb14306fe26e5975957.tar.bz2 hercules-012234bf93680d53c1f62cb14306fe26e5975957.tar.xz hercules-012234bf93680d53c1f62cb14306fe26e5975957.zip |
Fixed bugreport:5457 loginlog now submits proper escaped message to log
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15703 54d463be-8e91-2dee-dedb-b68131a5f0ec
-rw-r--r-- | src/login/loginlog_sql.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/login/loginlog_sql.c b/src/login/loginlog_sql.c index e4312d5ea..d61172697 100644 --- a/src/login/loginlog_sql.c +++ b/src/login/loginlog_sql.c @@ -69,7 +69,7 @@ void login_log(uint32 ip, const char* username, int rcode, const char* message) retcode = Sql_Query(sql_handle, "INSERT INTO `%s`(`time`,`ip`,`user`,`rcode`,`log`) VALUES (NOW(), '%s', '%s', '%d', '%s')", - log_login_db, ip2str(ip,NULL), esc_username, rcode, message); + log_login_db, ip2str(ip,NULL), esc_username, rcode, esc_message); if( retcode != SQL_SUCCESS ) Sql_ShowDebug(sql_handle); |