Fixed DiskAllowed checked in disklogstream source.

Filenames are now correctly checked against allowed folders.
This commit is contained in:
Andre Lorbach 2012-12-04 11:15:09 +01:00
parent 1b0ba0af2a
commit 3f99856430

View File

@ -124,7 +124,7 @@ class LogStreamDisk extends LogStream {
$bIsAllowedDir = false; $bIsAllowedDir = false;
foreach($content['DiskAllowed'] as $szAllowedDir) foreach($content['DiskAllowed'] as $szAllowedDir)
{ {
if ( strpos($szAllowedDir, $szFileDirName) !== FALSE ) if ( strpos($szFileDirName, $szAllowedDir) !== FALSE )
{ {
$bIsAllowedDir = true; $bIsAllowedDir = true;
break; break;