Skip to content

Fix UnicodeDecodeError crash when handling redirects with non-UTF-8 encoding#2822

Open
04cb wants to merge 1 commit intosherlock-project:masterfrom
04cb:fix/unicode-decode-error
Open

Fix UnicodeDecodeError crash when handling redirects with non-UTF-8 encoding#2822
04cb wants to merge 1 commit intosherlock-project:masterfrom
04cb:fix/unicode-decode-error

Conversation

@04cb
Copy link

@04cb 04cb commented Mar 7, 2026

Fixes #2730. When scanning usernames with special characters, some servers send redirect URLs with non-UTF-8 encoding. The requests library raises UnicodeDecodeError during redirect handling, which was not caught by the existing exception handlers. Added a specific handler for UnicodeDecodeError to treat it as a connection error, allowing the scan to continue gracefully.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Crash: UnicodeDecodeError on usernames with special characters

3 participants