🆙 More fixes 🆙
This commit is contained in:
1 parent
1e51ca4bd8
commit
ccbd61d8f2
5 files changed
+13
-3
No files matched your search
@@ -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