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.
I tried to edit my user info and set my homepage URL at the drupal.org site.
I set my homepage URL to be
http://www.pobox.com/~kwerle/
It complained that it was not a valid URL.
Looks like there is a bad logic check in there somewhere. I'm absolutely guessing it doesn't like the ~ character...
Comments
Comment #1
TDobes CreditAttribution: TDobes commentedYou are correct... the ~ is rejected by the valid_url function in common.inc. Adding the ~ should be fairly easy... but, while we're at it, what other characters should we be adding that are legal in URL's?
Comment #2
Dries CreditAttribution: Dries commentedI slightly improved the URL validation function: it now accepts https:// and ftp:// as valid protocols, it is no longer case-sensitive and will allow special characters like '~'. It can be improved further but at least the most annoying bugs have been taken care of.
Comment #3
(not verified) CreditAttribution: commented