Files
Portfolio/.gitignore
T
damjan_savicandClaude Sonnet 4.5 b5ea03ca58 fix: correct dashboard route regex pattern to prevent false matches (qa-requested)
Fixes regex pattern vulnerability in middleware route matching.

Changed pattern from:
  /^\/(de|en|sr)\/dashboard/

To:
  /^\/(de|en|sr)\/dashboard(\/|$)/

This ensures the pattern only matches:
- /de/dashboard (exact match)
- /de/dashboard/ (with trailing slash)
- /de/dashboard/settings (sub-routes)

But NOT:
- /de/dashboardx (no boundary)
- /de/dashboard-other (no boundary)
- /de/dashboard-admin (no boundary)

Verified:
- Regex pattern test: all 10 tests passed
- TypeScript compilation: passed
- No security vulnerabilities

QA Fix Session: 1

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-25 12:06:33 +01:00

88 lines
1015 B
Plaintext

# Dependencies
node_modules
.pnp
.pnp.js
# Testing
coverage
# Production
dist
dist-ssr
build
# Environment files
.env
.env.local
.env.development.local
.env.test.local
.env.production.local
*.local
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*
# Editor directories and files
.vscode/*
!.vscode/extensions.json
!.vscode/settings.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
# TypeScript
*.tsbuildinfo
# Cache
.eslintcache
.cache
.parcel-cache
.next
.nuxt
.vuepress/dist
.temp
.docusaurus
.serverless/
.fusebox/
.dynamodb/
.tern-port
.yarn/cache
.yarn/unplugged
.yarn/build-state.yml
.yarn/install-state.gz
.pnp.*
# Supabase
supabase/.branches/
supabase/.temp/
# PWA files
**/public/workbox-*.js
**/public/sw.js
**/public/fallback-*.js
# Misc
.sass-cache/
.project
.classpath
.settings/
*.sublime-workspace
*.sublime-project
.history/
# Source images (originals before optimization)
source-images/
# Auto Claude data directory
.auto-claude/