From 1031311f0654643f0e29e768a66a10a74fcedcd3 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Mon, 25 Jan 2021 17:48:03 -0700 Subject: [PATCH] Update RestrictedNames, add additional static assets --- app/Util/Lexer/RestrictedNames.php | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/app/Util/Lexer/RestrictedNames.php b/app/Util/Lexer/RestrictedNames.php index 09af01bfa..0309a6b9d 100644 --- a/app/Util/Lexer/RestrictedNames.php +++ b/app/Util/Lexer/RestrictedNames.php @@ -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;