Fixed a SQL injection

pull/1/head
root 17 years ago
parent df42c88a5b
commit 7bfa208a4e

@ -13,7 +13,7 @@
PARTICULAR PURPOSE. See the License for more details.
*/ ?>
<?
$query = "select * from `orginfo` where `id`='".$_REQUEST[orgid]."'";
$query = "select * from `orginfo` where `id`='".intval($_REQUEST[orgid])."'";
$row = mysql_fetch_assoc(mysql_query($query));
?>
<form method="post" action="account.php">

Loading…
Cancel
Save