Bug #104

Ban times not correctly displayed.

Added by Recon _ 197 days ago. Updated 170 days ago.

Status:Closed Start:06/23/2008
Priority:Normal Due date:
Assigned to:- % Done:

100%

Category:Web Panel
Target version:1.1.1

Description

Associated revisions

Revision 82
Added by Jon H 192 days ago

Fixes Bug #104 (reimplemented SecondsToString())
Fixes potential XSS with unescaped player names.

History

Updated by Recon _ 197 days ago

I changed line 575 in includes/system-functions.php (SecondsToString) from

if (($cou = round($sec / $div[$i])) >= 1 && ($sec / $div[$i] != 0.5))

to

if (($cou = round($sec / $div[$i], 1)) >= 1 && ($sec / $div[$i] != 0.5))

and line 577 in includes/system-functions.php (SecondsToString) from

$ret .= $cou.' '.$desc[$i].', ';

to

$ret .= round($cou).' '.$desc[$i].', ';

That seems to have fixed the problem.

Updated by Erik Minekus 170 days ago

  • Status changed from New to Closed
  • Target version set to 1.1.1
  • % Done changed from 0 to 100

I guess someone forgot to close this one ;) Fixed in r82.

Also available in: Atom PDF