You've already forked Epicnabbo-Catalogus-Updated-Daily
🆙 More fixes 🆙
This commit is contained in:
@@ -49,11 +49,11 @@ class WebsiteDrawBadgeObserver
|
||||
try {
|
||||
$filePath = DB::table('website_settings')->where('key', 'nitro_external_texts_file')->value('value');
|
||||
|
||||
if (! $filePath) {
|
||||
if (! is_string($filePath) || $filePath === '') {
|
||||
return;
|
||||
}
|
||||
|
||||
$filePath = str_replace(['../', '..\\'], '', $filePath);
|
||||
$filePath = str_replace(['../', '..\\'], '', (string) $filePath);
|
||||
|
||||
if (! file_exists($filePath) || ! is_file($filePath) || ! is_writable($filePath)) {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user