Closed (fixed)
Project:
Drupal core
Component:
profile.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
24 Mar 2004 at 20:08 UTC
Updated:
10 Apr 2004 at 10:20 UTC
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 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 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) commented