1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-12-05 17:22:06 +03:00

Sessions: Ignored extra meta/dist content in history tracking

For #5925
Added tests to cover.
Extracted existing test to place with similiar sessions tests
This commit is contained in:
Dan Brown
2025-12-03 14:10:09 +00:00
parent 2fde803c76
commit 65f7b61c1f
3 changed files with 57 additions and 24 deletions

View File

@@ -14,7 +14,10 @@ use Illuminate\Session\Middleware\StartSession as Middleware;
class StartSessionExtended extends Middleware
{
protected static array $pathPrefixesExcludedFromHistory = [
'uploads/images/'
'uploads/images/',
'dist/',
'manifest.json',
'opensearch.xml',
];
/**