Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
b986cc55
Commit
b986cc55
authored
Jan 13, 2009
by
Dries Buytaert
Browse files
- Patch
#124492
by mfer: tiny cleanup -- duplicate character.
parent
a9b8a48e
Changes
1
Hide whitespace changes
Inline
Side-by-side
includes/common.inc
View file @
b986cc55
...
...
@@ -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);
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment