Don't show SUID sessions when searching an IP
authorFlorent Bruneau <florent.bruneau@polytechnique.org>
Tue, 18 Mar 2008 20:30:08 +0000 (21:30 +0100)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Tue, 18 Mar 2008 20:30:08 +0000 (21:30 +0100)
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
modules/search/classes.inc.php

index f6922bd..ea58298 100644 (file)
@@ -308,7 +308,7 @@ class QuickSearch extends SField
         }
         if (!empty($this->ip)) {
             $ip = ip_to_uint($this->ip);
-            $where[] = "( ls.ip = $ip OR ls.forward_ip = $ip )";
+            $where[] = "( ls.ip = $ip OR ls.forward_ip = $ip ) AND ls.suid = 0";
         }
 
         return join(" AND ", $where);