-
Notifications
You must be signed in to change notification settings - Fork 28
Description
As per RFC3696 Section 2, hostnames in DNS may contain the letters a-z, the numbers 0-9, and the hyphen character -. However, it is not permitted for a hostname to start or end with a hyphen.
When testing whether this restriction was adhered to, I was able to create the extremely cursed leaflet publication ---.leaflet.pub, which is, of course, impossible to visit. The creation dialogue hung indefinitely (presumably trying to redirect me to a webpage that according to the browser could not exist on account of the URL being invalid), but the record was sucessfully added to my repo and leaflet does recognize the resultant site as a real publication,
Proposed solution: prevent users from creating publication URLs where any component begins or ends in -.