Skip to content
This repository was archived by the owner on Apr 19, 2021. It is now read-only.

Commit

Permalink
Squert: error when removing comment #1066
Browse files Browse the repository at this point in the history
  • Loading branch information
dougburks committed Jan 21, 2017
1 parent 2d1dbfb commit e3f2490
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .inc/callback.php
Original file line number Diff line number Diff line change
Expand Up @@ -724,7 +724,7 @@ function remove_comment() {
$user = $_SESSION['sUser'];
$comment = hextostr($_REQUEST['comment']);
$comment = mysql_real_escape_string($comment);
$query = "DELETE FROM sguildb.history WHERE comment = '$comment'";
$query = "DELETE FROM history WHERE comment = '$comment'";
mysql_query($query);
$result = mysql_error();
$return = array("msg" => $result);
Expand Down
6 changes: 6 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
securityonion-squert (20161212-1ubuntu1securityonion10) trusty; urgency=medium

* Squert: error when removing comment #1066

-- Doug Burks <[email protected]> Sat, 21 Jan 2017 05:06:53 -0500

securityonion-squert (20161212-1ubuntu1securityonion9) trusty; urgency=medium

* initialize srcd, dstd, and alld in callback.php
Expand Down
36 changes: 36 additions & 0 deletions debian/patches/Squert:-error-when-removing-comment-#1066
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
Description: <short summary of the patch>
TODO: Put a short summary on the line above and replace this paragraph
with a longer explanation of this change. Complete the meta-information
with other relevant fields (see below for details). To make it easier, the
information below has been extracted from the changelog. Adjust it or drop
it.
.
securityonion-squert (20161212-1ubuntu1securityonion10) trusty; urgency=medium
.
* Squert: error when removing comment #1066
Author: Doug Burks <[email protected]>

---
The information above should follow the Patch Tagging Guidelines, please
checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
are templates for supplementary fields that you might want to add:

Origin: <vendor|upstream|other>, <url of original patch>
Bug: <url in upstream bugtracker>
Bug-Debian: http://bugs.debian.org/<bugnumber>
Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
Forwarded: <no|not-needed|url proving that it has been forwarded>
Reviewed-By: <name and email of someone who approved the patch>
Last-Update: <YYYY-MM-DD>

--- securityonion-squert-20161212.orig/.inc/callback.php
+++ securityonion-squert-20161212/.inc/callback.php
@@ -724,7 +724,7 @@ function remove_comment() {
$user = $_SESSION['sUser'];
$comment = hextostr($_REQUEST['comment']);
$comment = mysql_real_escape_string($comment);
- $query = "DELETE FROM sguildb.history WHERE comment = '$comment'";
+ $query = "DELETE FROM history WHERE comment = '$comment'";
mysql_query($query);
$result = mysql_error();
$return = array("msg" => $result);
1 change: 1 addition & 0 deletions debian/patches/series
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ add-hash-to-object_mappings-table
populate-empty-hash-fields
Squert:-OSSEC-HIDS-alerts-display-NIDS-rules-#958
initialize-srcd,-dstd,-and-alld-in-callback.php
Squert:-error-when-removing-comment-#1066

0 comments on commit e3f2490

Please sign in to comment.