1
0
Fork 1
mirror of https://github.com/pixelfed/pixelfed.git synced 2024-12-23 16:24:29 +00:00

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

View file

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