mirror of
https://github.com/rsyslog/loganalyzer.git
synced 2025-09-25 18:59:12 +02:00
Fixed DiskAllowed checked in disklogstream source.
Filenames are now correctly checked against allowed folders.
This commit is contained in:
parent
1b0ba0af2a
commit
3f99856430
@ -124,7 +124,7 @@ class LogStreamDisk extends LogStream {
|
||||
$bIsAllowedDir = false;
|
||||
foreach($content['DiskAllowed'] as $szAllowedDir)
|
||||
{
|
||||
if ( strpos($szAllowedDir, $szFileDirName) !== FALSE )
|
||||
if ( strpos($szFileDirName, $szAllowedDir) !== FALSE )
|
||||
{
|
||||
$bIsAllowedDir = true;
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user