Skip to content
This repository has been archived by the owner on May 2, 2021. It is now read-only.

Commit

Permalink
Merge pull request #10 from candlerb/candlerb/htmlescape
Browse files Browse the repository at this point in the history
Escape angle brackets in HTML
  • Loading branch information
p-alik committed Nov 14, 2018
2 parents 5b73861 + 3604018 commit cec68e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libexec/AbuseWhois.pm
Expand Up @@ -381,7 +381,7 @@ sub Reverse_name($) {
my $hostname = scalar gethostbyaddr(inet_pton($af, $ip), $af);

if ( !defined $hostname ) {
$hostname = '<not found>';
$hostname = '&lt;not found&gt;';
}

return $hostname;
Expand Down Expand Up @@ -743,7 +743,7 @@ sub Query($$) {
}

my $hostname = Reverse_name($ip);
print $sock "<b>$ip -> $hostname</b>\n";
print $sock "<b>$ip -&gt; $hostname</b>\n";
print $sock "<pre>\n";

my ($net, $org_id) = ARNIN_stage1($ip);
Expand Down

0 comments on commit cec68e8

Please sign in to comment.