Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Trying to get a new site provision with an url like "drupal.local" is not possible due to the validation on the title/url. I don't see what the reason behind this restriction would be.
This patch removes the validation.
Comment | File | Size | Author |
---|---|---|---|
#7 | hosting_site-317089-2.patch | 720 bytes | fp |
hosting_site-site_url_validation.patch | 1.04 KB | fp |
Comments
Comment #1
fp CreditAttribution: fp commentedComment #2
fp CreditAttribution: fp commentedOne day, I will get it... :)
Comment #3
adrian CreditAttribution: adrian commentedThere needs to be some form of validation to make sure the user creates valid urls =\
Comment #4
anarcat CreditAttribution: anarcat commentedAgreed, *some* sort of validation is necessary. We probably need to look in an RFC or something.
I do think that the current restrictions are too restrictive, however.
Comment #5
anarcat CreditAttribution: anarcat commentedhttp://en.wikipedia.org/wiki/FQDN
Comment #6
anarcat CreditAttribution: anarcat commentedThis is the CFG from RFC1035:
I have committed a fairly naive implementation of that syntax in my latest commit, please review http://drupal.org/cvs?commit=146806
Comment #7
fp CreditAttribution: fp commentedInspired from your commit, here's a patch that does the same job (I think...) in a fewer words and also allows domains starting with digits. Although it doesn't appear to be part of the RFC 1035 preferred syntax, I think we should allow it.
Comment #8
adrian CreditAttribution: adrian commentedI agree domains should be able to start with digits (if you can register it, it should be allowed).
committed it.
Comment #9
Anonymous (not verified) CreditAttribution: Anonymous commentedAutomatically closed -- issue fixed for two weeks with no activity.