🆙 More fixes 🆙

This commit is contained in:
Remco
2026-01-19 21:34:31 +01:00
parent 1e51ca4bd8
commit ccbd61d8f2
5 changed files with 13 additions and 3 deletions
@@ -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;