Remove SQL injection

This commit is contained in:
Paal Braathen committed 2015-03-05 19:49:53 +01:00
1 parent c69ae02301
commit a7ba9b2d59
1 file changed
+4 -1
+4 -1
View File
@@ -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++) {
}
}
?>
?>