aboutsummaryrefslogtreecommitdiffstats
path: root/src/slskd/Common/Middleware
AgeCommit message (Collapse)AuthorLines
2026-10-26make rewrite resilentJP Dillingham-24/+42
2026-10-26ensure exception can be returned if injection throwsJP Dillingham-21/+39
2026-10-26drop junk after the semicolonJP Dillingham-12/+3
2026-10-26fix injection middlewareJP Dillingham-3/+7
2026-10-26fix rewrite middlewareJP Dillingham-2/+6
2026-03-29add FORKING.mdJP Dillingham-6/+3
2026-03-28remove non breaking spacesJP Dillingham-18/+15
2026-03-24fix remaining headersJP Dillingham-45/+96
2026-01-14rearrange model binderJP Dillingham-12/+11
2026-01-14Fix UrlEncodingModelBinder to account for PathBaseAndy Kelk-1/+11
When the application runs with a base path (e.g., /slskd via UsePathBase), the UrlEncodingModelBinder was incorrectly calculating the URL segment index. It was using the route template (which doesn't include the base path) to determine the index, but applying it to the raw URL (which does include the base path), causing it to extract the wrong segment. This fix strips the PathBase from the absolute path before splitting it into segments, ensuring the correct parameter value is extracted regardless of whether a base path is configured. Fixes regression introduced in PR #1596 (commits 8849d78c and e7e0cdaf) where [UrlEncoded] attribute was added to username parameters in v0.24.2. Also adds comprehensive unit tests to verify the fix works correctly with and without a base path, including edge cases like query strings and special characters in usernames.
2026-01-12docsJP Dillingham-2/+2
2026-01-11use raw url, before any decodingJP Dillingham-12/+37
2026-01-10rename and tweakJP Dillingham-82/+119
2025-12-07rough in solution from github issuesJP Dillingham-0/+82
2024-06-02fix typosJP Dillingham-1/+1
2022-10-23clean up upload helper boilerplateJP Dillingham-0/+28
2022-08-28fix bug causing html to be injected in prometheus metricsJP Dillingham-5/+20
2022-05-13replace headers on rewritten responsesJP Dillingham-14/+29
2022-05-08remove strict url enforcementJP Dillingham-80/+0
2022-05-06add middleware to rewrite HTMLJP Dillingham-1/+125
2022-05-05refactor to work in productionJP Dillingham-3/+22
2022-05-05docsJP Dillingham-1/+40
2022-05-05add HTMLInjectionMiddlewareJP Dillingham-0/+60
2022-05-05move middlewareJP Dillingham-0/+80