Skip to content

Commit

Permalink
Opps forgot about the update query
Browse files Browse the repository at this point in the history
  • Loading branch information
tm1000 committed Jul 31, 2011
1 parent ea4428f commit bc07c32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion page.sak_blacklist_adv.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

if(isset($_REQUEST['edit'])) {
$_REQUEST['nn'] = (isset($_REQUEST['nn'])) ? $_REQUEST['nn'] : '.*';
$db->query("UPDATE sak_bwlist SET nn = '".$_REQUEST['nn']."', permit = '".$permit."' WHERE id = ".$_REQUEST['edit']);
$db->query("UPDATE sak_bwlist SET nn = '".addslashes($_REQUEST['nn'])."', permit = '".$permit."' WHERE id = ".$_REQUEST['edit']);
} else {
$db->query("INSERT INTO sak_bwlist (nn, permit, sort) VALUES ('".addslashes($_REQUEST['nn'])."', '".$permit."', 1)");
}
Expand Down

0 comments on commit bc07c32

Please sign in to comment.