Skip to content

Commit

Permalink
csnick doesnt contain characters that need html escaping
Browse files Browse the repository at this point in the history
  • Loading branch information
tommyrot committed Jun 25, 2016
1 parent d559cb9 commit 35116c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions html.php
Original file line number Diff line number Diff line change
Expand Up @@ -1372,9 +1372,9 @@ private function make_table_people_timeofday($sqlite3)
$width = round((${$time}[$i]['lines'] / $high_value) * 190);

if ($width !== (float) 0) {
$trx .= '<td class="v">'.htmlspecialchars(${$time}[$i]['user']).' - '.number_format(${$time}[$i]['lines']).'<br><div class="'.$this->color[$time].'" style="width:'.$width.'px"></div>';
$trx .= '<td class="v">'.${$time}[$i]['user'].' - '.number_format(${$time}[$i]['lines']).'<br><div class="'.$this->color[$time].'" style="width:'.$width.'px"></div>';
} else {
$trx .= '<td class="v">'.htmlspecialchars(${$time}[$i]['user']).' - '.number_format(${$time}[$i]['lines']);
$trx .= '<td class="v">'.${$time}[$i]['user'].' - '.number_format(${$time}[$i]['lines']);
}
}
}
Expand Down

0 comments on commit 35116c0

Please sign in to comment.