1
0
Fork 0

Update RestrictedNames, add additional static assets

This commit is contained in:
Daniel Supernault 2021-01-25 17:48:03 -07:00
parent 77f21b4b33
commit 1031311f06
No known key found for this signature in database
GPG Key ID: 0DEF1C662C9033F7
1 changed files with 9 additions and 2 deletions

View File

@ -87,6 +87,14 @@ class RestrictedNames
'assets', 'assets',
'public', 'public',
'storage', 'storage',
'htaccess',
'.htaccess',
'favicon.ico',
'embed.js',
'index.php',
'manifest.json',
'mix-manifest.json',
'robots.txt',
// Laravel Horizon // Laravel Horizon
'horizon', 'horizon',
@ -147,7 +155,6 @@ class RestrictedNames
'driver', 'driver',
'e', 'e',
'embed', 'embed',
'embed.js',
'email', 'email',
'emails', 'emails',
'error', 'error',
@ -191,7 +198,6 @@ class RestrictedNames
'invites', 'invites',
'import', 'import',
'imports', 'imports',
'index.php',
'j', 'j',
'js', 'js',
'k', 'k',
@ -329,6 +335,7 @@ class RestrictedNames
$reserved = self::$reserved; $reserved = self::$reserved;
$res = array_merge($additional, $reserved, $banned); $res = array_merge($additional, $reserved, $banned);
$res = array_unique($res);
sort($res); sort($res);
return $res; return $res;