X-Git-Url: https://git.harvie.cz/?a=blobdiff_plain;f=wwwroot%2Finc%2Feventz%2Fregister.inc;h=9ea7fe7bf3ab5a733bfa06e2367e3d5c57639ea8;hb=78f1a5f44941de2459b71c375e36cf88227c689c;hp=83c0f73215842967edadeeaf52ee614d78daf328;hpb=d068d94b5e62de2f80164fd8062adce6e0ad93ae;p=mirrors%2FKyberia-bloodline.git diff --git a/wwwroot/inc/eventz/register.inc b/wwwroot/inc/eventz/register.inc index 83c0f73..9ea7fe7 100644 --- a/wwwroot/inc/eventz/register.inc +++ b/wwwroot/inc/eventz/register.inc @@ -2,13 +2,13 @@ function register() { global $db, $error; - $guild_id = mysql_real_escape_string(strip_tags(trim($_POST['guild_id']))); - $content = mysql_real_escape_string(strip_tags(trim($_POST['reg_content']))); - $email = mysql_real_escape_string(strip_tags(trim($_POST['reg_email']))); - $login = mysql_real_escape_string(strip_tags(trim($_POST['reg_login']))); - $xmpp = mysql_real_escape_string(strtolower(strip_tags(trim($_POST['reg_login'])))); - $pass = mysql_real_escape_string($_POST['reg_pass']); - $pass2 = mysql_real_escape_string($_POST['reg_pass2']); + $guild_id = db_escape_string(strip_tags(trim($_POST['guild_id']))); + $content = db_escape_string(strip_tags(trim($_POST['reg_content']))); + $email = db_escape_string(strip_tags(trim($_POST['reg_email']))); + $login = db_escape_string(strip_tags(trim($_POST['reg_login']))); + $xmpp = db_escape_string(strtolower(strip_tags(trim($_POST['reg_login'])))); + $pass = db_escape_string($_POST['reg_pass']); + $pass2 = db_escape_string($_POST['reg_pass2']); if (empty($login)) { $error = 'please enter your nick name';