Skip to content

Commit

Permalink
Fixed backslash problem
Browse files Browse the repository at this point in the history
  • Loading branch information
tm1000 committed Jul 31, 2011
1 parent 0d0baac commit ea4428f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion module.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<rawname>sak</rawname>
<repo>standard</repo>
<name>Swiss Army Knife</name>
<version>2.0.2</version>
<version>2.0.3</version>
<publisher>Andrew Nagy</publisher>
<license>MPLv1.1</license>
<type>tool</type>
Expand All @@ -14,6 +14,7 @@
</menuitems>
<description>I miss a feature. So it winds up here</description>
<changelog>
*2.0.3* Fixed backslash problem
*2.0.2* Fixed count on times matched if in the deny list
*2.0.1* Fixed how the AGI hang-up functions worked
*2.0* Added new black/white list Regular Expression Module
Expand Down
2 changes: 1 addition & 1 deletion page.sak_blacklist_adv.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
$_REQUEST['nn'] = (isset($_REQUEST['nn'])) ? $_REQUEST['nn'] : '.*';
$db->query("UPDATE sak_bwlist SET nn = '".$_REQUEST['nn']."', permit = '".$permit."' WHERE id = ".$_REQUEST['edit']);
} else {
$db->query("INSERT INTO sak_bwlist (nn, permit, sort) VALUES ('".$_REQUEST['nn']."', '".$permit."', 1)");
$db->query("INSERT INTO sak_bwlist (nn, permit, sort) VALUES ('".addslashes($_REQUEST['nn'])."', '".$permit."', 1)");
}
}

Expand Down

0 comments on commit ea4428f

Please sign in to comment.