Skip to content

Commit 07042aa

Browse files
authored
Merge pull request #8 from JoaoBGusmao/exploit_fix
sql injection fix
2 parents e558e9c + 09b2105 commit 07042aa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sources/ucp/buynx.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@
4545
}
4646
}
4747
else {
48-
$selChar = isset($_POST['selChar']) ? $_POST['selChar'] : '';
49-
$selPack = isset($_POST['selPack']) ? $_POST['selPack'] : '';
48+
$selChar = isset($_POST['selChar']) ? $mysqli->real_escape_string( $_POST['selChar'] ) : '';
49+
$selPack = isset($_POST['selPack']) ? $mysqli->real_escape_string( $_POST['selPack'] ) : '';
5050
$hasMeso = $mysqli->query("SELECT * FROM `characters` WHERE `id` = '".$selChar."'") or die();
5151
$getMeso = $hasMeso->fetch_assoc();
5252
$fetchNX = $mysqli->query("SELECT * FROM `".$prefix."buynx` WHERE `meso` = '".$selPack."'") or die();

0 commit comments

Comments
 (0)