diff options
author | Dries Buytaert <dries@buytaert.net> | 2006-10-09 06:47:22 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2006-10-09 06:47:22 +0000 |
commit | e8ee0bcd2a8961c5eabdd1661f444cb95349ebd4 (patch) | |
tree | d1f558671e400e540a58be22635c57e55eef3127 /includes/common.inc | |
parent | 8a478d5068e96f7af4a00b0244a426a9aff9b77c (diff) | |
download | brdo-e8ee0bcd2a8961c5eabdd1661f444cb95349ebd4.tar.gz brdo-e8ee0bcd2a8961c5eabdd1661f444cb95349ebd4.tar.bz2 |
- Patch #40209 by pascal and jvandyk: added missing semicolon to URL validation.
Diffstat (limited to 'includes/common.inc')
-rw-r--r-- | includes/common.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/common.inc b/includes/common.inc index 581437de4..c32bee9d8 100644 --- a/includes/common.inc +++ b/includes/common.inc @@ -689,7 +689,7 @@ function valid_email_address($mail) { * TRUE if the URL is in a valid format. */ function valid_url($url, $absolute = FALSE) { - $allowed_characters = '[a-z0-9\/:_\-_\.\?\$,~=#&%\+]'; + $allowed_characters = '[a-z0-9\/:_\-_\.\?\$,;~=#&%\+]'; if ($absolute) { return preg_match("/^(http|https|ftp):\/\/". $allowed_characters ."+$/i", $url); } |