mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-28 08:14:03 +02:00
GettextTranslationHelper: Avoid descending into symlinks
This basically avoids loops... Signed-off-by: Eric Lippmann <eric.lippmann@icinga.com>
This commit is contained in:
parent
43423f9453
commit
389b23af81
@ -473,7 +473,7 @@ class GettextTranslationHelper
|
|||||||
$filepath = $directory . DIRECTORY_SEPARATOR . $filename;
|
$filepath = $directory . DIRECTORY_SEPARATOR . $filename;
|
||||||
if (preg_match('@^[^\.].+\.(' . implode('|', $this->sourceExtensions) . ')$@', $filename)) {
|
if (preg_match('@^[^\.].+\.(' . implode('|', $this->sourceExtensions) . ')$@', $filename)) {
|
||||||
$file->fwrite($filepath . PHP_EOL);
|
$file->fwrite($filepath . PHP_EOL);
|
||||||
} elseif (is_dir($filepath)) {
|
} elseif (! is_link($filepath) && is_dir($filepath)) {
|
||||||
$subdirs[] = $filepath;
|
$subdirs[] = $filepath;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user