diff options
author | Dries Buytaert <dries@buytaert.net> | 2009-01-13 22:19:28 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2009-01-13 22:19:28 +0000 |
commit | b986cc556d3eb30afd95d996cbfbe92a7537411f (patch) | |
tree | d01fdd50c8efac538881c14d5738c015f732c90c /includes | |
parent | a9b8a48e74438261841293e4f30166fa2cd31c7e (diff) | |
download | brdo-b986cc556d3eb30afd95d996cbfbe92a7537411f.tar.gz brdo-b986cc556d3eb30afd95d996cbfbe92a7537411f.tar.bz2 |
- Patch #124492 by mfer: tiny cleanup -- duplicate character.
Diffstat (limited to 'includes')
-rw-r--r-- | includes/common.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/common.inc b/includes/common.inc index 5b6fb3726..874c3acdc 100644 --- a/includes/common.inc +++ b/includes/common.inc @@ -1196,12 +1196,12 @@ function valid_url($url, $absolute = FALSE) { ) (?::[0-9]+)? # Server port number (optional) (?:[\/|\?] - (?:[\w#!:\.\?\+=&@!$'~*,;\/\(\)\[\]\-]|%[0-9a-f]{2}) # The path and query (optional) + (?:[\w#!:\.\?\+=&@$'~*,;\/\(\)\[\]\-]|%[0-9a-f]{2}) # The path and query (optional) *)? $/xi", $url); } else { - return (bool)preg_match("/^(?:[\w#!:\.\?\+=&@!$'~*,;\/\(\)\[\]\-]|%[0-9a-f]{2})+$/i", $url); + return (bool)preg_match("/^(?:[\w#!:\.\?\+=&@$'~*,;\/\(\)\[\]\-]|%[0-9a-f]{2})+$/i", $url); } } |