Remove SQL injection
This commit is contained in:
1 parent
c69ae02301
commit
a7ba9b2d59
1 file changed
+4
-1
+4
-1
@@ -7,6 +7,9 @@ $conn =& DB_connect();
|
||||
|
||||
$id = $_GET['id'];
|
||||
|
||||
if (!preg_match('/^\d+$/', $id))
|
||||
die("That's not an id");
|
||||
|
||||
$nodelist = array();
|
||||
|
||||
// Pull file meta-data
|
||||
@@ -56,4 +59,4 @@ for ($i = 0 ; $i < count($nodelist) ; $i++) {
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
?>
|
||||
Reference in new issue
Block a user