Fix SQL injection vulnerability

This commit is contained in:
What.CD 2011-06-03 08:00:07 +00:00
parent 873044dae6
commit bf344663aa

View File

@ -7,7 +7,7 @@
$AliasName = db_string($_POST['name']); $AliasName = db_string($_POST['name']);
if(!$Redirect) { $Redirect = 0; } if(!$Redirect) { $Redirect = 0; }
if(!is_number($ArtistID) || !($Redirect == 0 || is_number($Redirect)) || !$ArtistID) { if(!is_number($ArtistID) || !($Redirect === 0 || is_number($Redirect)) || !$ArtistID) {
error(0); error(0);
} }