From b986cc556d3eb30afd95d996cbfbe92a7537411f Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Tue, 13 Jan 2009 22:19:28 +0000 Subject: - Patch #124492 by mfer: tiny cleanup -- duplicate character. --- includes/common.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'includes') 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); } } -- cgit v1.2.3