IP isn't an int
This commit is contained in:
parent
070aeff199
commit
ba02e589b0
1 changed files with 1 additions and 1 deletions
|
@ -246,7 +246,7 @@ class UserPage extends SimpleExtension {
|
||||||
$event->add_querylet(new Querylet("images.owner_id = $user_id"));
|
$event->add_querylet(new Querylet("images.owner_id = $user_id"));
|
||||||
}
|
}
|
||||||
else if($user->is_admin() && preg_match("/^(poster|user)_ip=([0-9\.]+)$/i", $event->term, $matches)) {
|
else if($user->is_admin() && preg_match("/^(poster|user)_ip=([0-9\.]+)$/i", $event->term, $matches)) {
|
||||||
$user_ip = int_escape($matches[2]);
|
$user_ip = $matches[2]; // FIXME: ip_escape?
|
||||||
$event->add_querylet(new Querylet("images.owner_ip = '$user_ip'"));
|
$event->add_querylet(new Querylet("images.owner_ip = '$user_ip'"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue