diff options
author | Dries Buytaert <dries@buytaert.net> | 2009-01-08 19:09:49 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2009-01-08 19:09:49 +0000 |
commit | 18ad0f6933122d08ce394cb756f35b8d9c9e9900 (patch) | |
tree | bec61e21a76c10558691e794857ed0020f9fa128 /modules/profile/profile.test | |
parent | 00b9dd417058d773be11088318ac467839166e78 (diff) | |
download | brdo-18ad0f6933122d08ce394cb756f35b8d9c9e9900.tar.gz brdo-18ad0f6933122d08ce394cb756f35b8d9c9e9900.tar.bz2 |
- Patch #124492 by mfer, c960657 et al: valid_url() does not support all valid URL characters.
Diffstat (limited to 'modules/profile/profile.test')
-rw-r--r-- | modules/profile/profile.test | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/profile/profile.test b/modules/profile/profile.test index 8b17c07a4..58193d40e 100644 --- a/modules/profile/profile.test +++ b/modules/profile/profile.test @@ -134,7 +134,9 @@ class ProfileTestFields extends ProfileTestCase { 'textarea' => $this->randomName(), 'list' => $this->randomName(), 'checkbox' => 1, - 'url' => 'http://www.' . $this->randomName(10). '.org', + // An underscore is an invalid character in a domain name. The method randomName can + // return an underscore. + 'url' => 'http://www.' . str_replace('_', '', $this->randomName(10)). '.org', ); // For each field type, create a field, give it a value and delete the field. |