Skip to content

Commit

Permalink
Update functions.php
Browse files Browse the repository at this point in the history
minor fix regarding IPv6 and character escaping
  • Loading branch information
userjack6880 authored Jul 12, 2021
1 parent 5631661 commit e9d648e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions includes/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -236,9 +236,9 @@ function domain_reports($domain, $pdo, $dateRange = DATE_RANGE, $disp = 'none')
$query = $pdo->prepare("SELECT * FROM `rptrecord` WHERE `serial` IN ('".implode("', '",$serials)."') AND `identifier_hfrom` = :domain AND `disposition` = :disp");
$query->execute($params);
while ($row = $query->fetch(PDO::FETCH_ASSOC)) {
$row = array_map('htmlspecialchars', $row);
debug ("printing row");
$ip = get_ip($row['ip'], $row['ip6']);
$ip = get_ip($row['ip'], $row['ip6']);
$row = array_map('htmlspecialchars', $row);
echo "\t<tr>\n";
echo "\t\t<td><a href='report.php?serial=".$row['serial']."'>".$reports[$row['serial']]."</a></td>\n";
echo "\t\t<td><a href='host.php?ip=".$ip;
Expand Down

0 comments on commit e9d648e

Please sign in to comment.