mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Misc fixes 42 (#15413)
* Misc Fixes * Apply fixes from StyleCI --------- Co-authored-by: StyleCI Bot <bot@styleci.io>
This commit is contained in:
@@ -40,7 +40,7 @@ class Clean
|
||||
*/
|
||||
public static function fileName($file)
|
||||
{
|
||||
return preg_replace('/[^a-zA-Z0-9\-._]/', '', $file);
|
||||
return preg_replace('/[^a-zA-Z0-9\-._]/', '', $file ?? '');
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user