projects
/
platal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Don't show SUID sessions when searching an IP
[platal.git]
/
modules
/
search
/
classes.inc.php
diff --git
a/modules/search/classes.inc.php
b/modules/search/classes.inc.php
index
f6922bd
..
ea58298
100644
(file)
--- a/
modules/search/classes.inc.php
+++ b/
modules/search/classes.inc.php
@@
-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);