Active
Project:
TinyBrowser
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
13 May 2011 at 21:20 UTC
Updated:
9 Dec 2011 at 01:54 UTC
If you can't access the ../ folder or the ./ folder glob will return false => and count(false) returns 1 => file counts are incorrect
fns_tinybrowser.php line 438:
$filenum = $filenum + count(glob($root.$tree.$branch.sql_regcase($filetype),GLOB_NOSORT));
fix:
$tmp = glob($root.$tree.$branch.sql_regcase($filetype),GLOB_NOSORT);
$filenum = $filenum + ($tmp?count($tmp):0);
this error returns 4 times
Comments
Comment #1
reg commentedSame as above just slightly clearer at a glance: