No longer treat spaces as a valid character in URLs
Example where this is problematic (NSFW): https://pixwhile.zangetsu.kaizoku.cyou/artworks/107464328
This commit is contained in:
parent
fd020ed756
commit
21fc3e43d8
|
@ -8,7 +8,6 @@
|
||||||
|
|
||||||
#define UNRESERVED "[\\w\\d\\-._~]"
|
#define UNRESERVED "[\\w\\d\\-._~]"
|
||||||
#define PCT_ENCODED "%[\\da-f]{2}"
|
#define PCT_ENCODED "%[\\da-f]{2}"
|
||||||
// A space is added to sub-delims to make it work with URLs that have a space
|
|
||||||
#define SUB_DELIMS "[!$&'()*+,;=]"
|
#define SUB_DELIMS "[!$&'()*+,;=]"
|
||||||
|
|
||||||
#define USERINFO "((?:" UNRESERVED "|" PCT_ENCODED "|" SUB_DELIMS "|:)*)"
|
#define USERINFO "((?:" UNRESERVED "|" PCT_ENCODED "|" SUB_DELIMS "|:)*)"
|
||||||
|
|
Loading…
Reference in New Issue