projects
/
platal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Store IP as uint instead of strings.
[platal.git]
/
modules
/
search
/
classes.inc.php
diff --git
a/modules/search/classes.inc.php
b/modules/search/classes.inc.php
index
a1fc847
..
f6922bd
100644
(file)
--- a/
modules/search/classes.inc.php
+++ b/
modules/search/classes.inc.php
@@
-307,7
+307,7
@@
class QuickSearch extends SField
$where[] = 'ems.email = ' . XDB::escape($this->email);
}
if (!empty($this->ip)) {
- $ip =
XDB::escape
($this->ip);
+ $ip =
ip_to_uint
($this->ip);
$where[] = "( ls.ip = $ip OR ls.forward_ip = $ip )";
}