The previous fix compared subPath directly against the sanitized torrent name, which fails when RdName contains characters removed by RemoveInvalidPathChars (e.g. ':' on Windows). Extract and normalize the first component of subPath before comparing so both sides go through the same sanitization. Add tests covering the duplicate-prefix stripping case. |
||
|---|---|---|
| .. | ||
| DownloadHelperTest.cs | ||
| FileHelperTest.cs | ||
| OSHelper.cs | ||
| RateLimitHandlerTest.cs | ||