[Bps-public-commit] RT-Extension-rt_cpan_org branch, rt4, updated. 1a85aea377632293fafa12083e9c1ccf83f8c6ea

Thomas Sibley trs at bestpractical.com
Mon Apr 1 18:43:22 EDT 2013


The branch, rt4 has been updated
       via  1a85aea377632293fafa12083e9c1ccf83f8c6ea (commit)
      from  c09522db1b9f04f96fd57cfc48d7b477bf74bd9c (commit)

Summary of changes:
 patches/4.0.10-not-in-operator.patch | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)
 create mode 100644 patches/4.0.10-not-in-operator.patch

- Log -----------------------------------------------------------------
commit 1a85aea377632293fafa12083e9c1ccf83f8c6ea
Author: Thomas Sibley <trs at bestpractical.com>
Date:   Mon Apr 1 15:41:27 2013 -0700

    Patch for NOT IN

diff --git a/patches/4.0.10-not-in-operator.patch b/patches/4.0.10-not-in-operator.patch
new file mode 100644
index 0000000..9a6409b
--- /dev/null
+++ b/patches/4.0.10-not-in-operator.patch
@@ -0,0 +1,26 @@
+From eca33d861ed6e50d63a63d77ee2052a429ae75c2 Mon Sep 17 00:00:00 2001
+From: Thomas Sibley <trs at bestpractical.com>
+Date: Mon, 1 Apr 2013 15:39:23 -0700
+Subject: [PATCH] Allow the NOT IN operator in Limit calls
+
+IN/NOT IN is supported by DBIx::SearchBuilder with the 1.63_01 release.
+---
+ lib/RT/SearchBuilder.pm | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/lib/RT/SearchBuilder.pm b/lib/RT/SearchBuilder.pm
+index 1df5ac1..b634ec2 100644
+--- a/lib/RT/SearchBuilder.pm
++++ b/lib/RT/SearchBuilder.pm
+@@ -279,7 +279,7 @@ sub Limit {
+                                   |(NOT\s*)?(STARTS|ENDS)WITH
+                                   |(NOT\s*)?MATCHES
+                                   |IS(\s*NOT)?
+-                                  |IN
++                                  |(NOT\s*)IN
+                                   |\@\@)$/ix) {
+         $RT::Logger->crit("Possible SQL injection attack: $ARGS{FIELD} $ARGS{OPERATOR}");
+         $self->SUPER::Limit(
+-- 
+1.7.11.3
+

-----------------------------------------------------------------------



More information about the Bps-public-commit mailing list