Commit e8ee0bcd authored by Dries's avatar Dries

- Patch #40209 by pascal and jvandyk: added missing semicolon to URL validation.

parent 8a478d50
......@@ -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);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment