"Invalid non-printable ASCII character in URL" since 0.24.0 #2676
Answered
by
lovelydinosaur
vphpersson
asked this question in
Potential Issue
-
|
Starting from version 0.24.0, I am no longer able to use # If a URL includes any ASCII control characters including \t, \r, \n,
# then treat it as invalid.
if any(char.isascii() and not char.isprintable() for char in url):
raise InvalidURL("Invalid non-printable ASCII character in URL")Is there a particular reason for not allowing non-printable ASCII characters anymore? |
Beta Was this translation helpful? Give feedback.
Answered by
lovelydinosaur
Apr 26, 2023
Replies: 1 comment 2 replies
-
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
lovelydinosaur
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://www.rfc-editor.org/rfc/rfc3986#section-3.3