Bug #104
Ban times not correctly displayed.
| Status: | Closed | Start: | 06/23/2008 | |
| Priority: | Normal | Due date: | ||
| Assigned to: | - | % Done: | 100% |
|
| Category: | Web Panel | |||
| Target version: | 1.1.1 | |||
Description
This ban http://sb.trainingserver.okbehappy.net/index.php?p=banlist&searchText=STEAM_0:0:2755162&Submit, is a 4d ban. Yet it shows up as 1wk, 4d...
Associated revisions
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.