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:
parent
77f21b4b33
commit
1031311f06
1 changed files with 9 additions and 2 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue