5 | 5 | I note Tim Graham's [https://code.djangoproject.com/ticket/20003#comment:12 concern] about adding complexity to the validation regex. However, I take the opposite position to Danilo Bargen about [https://code.djangoproject.com/ticket/20003#comment:13 invalid URL edge cases]: it's not fine if invalid URLs (even so-called "edge cases") are accepted when the regex could be fixed simply to reject them correctly. I also note that a URL of the form above was encountered in a production setting, so that this is a genuine use case, not merely an academic exercise. |