#
# COPYRIGHT:
#
-# This software is Copyright (c) 1996-2007 Best Practical Solutions, LLC
+# This software is Copyright (c) 1996-2009 Best Practical Solutions, LLC
# <jesse@bestpractical.com>
#
# (Except where explicitly superseded by other copyright notices)
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
# 02110-1301 or visit their web page on the internet at
-# http://www.gnu.org/copyleft/gpl.html.
+# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html.
#
#
# CONTRIBUTION SUBMISSION POLICY:
push @id_clauses, "id = '$key'";
}
+ elsif ($key =~ /^fulltext:(.*?)$/i) {
+ $key = $1;
+ $key =~ s/['\\].*//g;
+ push @tql_clauses, "Content LIKE '$key'";
+
+ }
+
elsif ( $key =~ /\w+\@\w+/ ) {
push @user_clauses, "Requestor LIKE '$key'";
}
push @owner_clauses, "Owner = '" . $User->Name . "'";
}
- elsif ($key =~ /^fulltext:(.*?)$/i) {
- $key = $1;
- $key =~ s/['\\].*//g;
- push @tql_clauses, "Content LIKE '$key'";
-
- }
-
# Else, subject must contain $key
else {
$key =~ s/['\\].*//g;