Don't show host on IP_less

Sometimes there isn't one so you get weird stuff like

127.0.x.x
x.x.0.1

revealing the whole IP. Oops.
This commit is contained in:
8chan 2014-10-09 20:26:40 -07:00
parent da0ea45730
commit f07cf32001

View File

@ -966,7 +966,7 @@ function mod_page_ip_less($b, $id) {
$args['security_token'] = make_secure_link_token('IP_less/' . $b . '/' . $id); $args['security_token'] = make_secure_link_token('IP_less/' . $b . '/' . $id);
mod_page(sprintf('%s: %s', _('IP'), less_ip($ip)), 'mod/view_ip_less.html', $args, less_hostmask($args['hostname'])); mod_page(sprintf('%s: %s', _('IP'), less_ip($ip)), 'mod/view_ip_less.html', $args);
} }
function mod_ban() { function mod_ban() {