浏览代码

Fixed bugreport:5457 loginlog now submits proper escaped message to log

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@15703 54d463be-8e91-2dee-dedb-b68131a5f0ec
shennetsind 13 年之前
父节点
当前提交
c6ed701d4e
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/login/loginlog_sql.c

+ 1 - 1
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,
 	retcode = Sql_Query(sql_handle,
 		"INSERT INTO `%s`(`time`,`ip`,`user`,`rcode`,`log`) VALUES (NOW(), '%s', '%s', '%d', '%s')",
 		"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 )
 	if( retcode != SQL_SUCCESS )
 		Sql_ShowDebug(sql_handle);
 		Sql_ShowDebug(sql_handle);