Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
drupal.org
link
Commits
0309db68
Commit
0309db68
authored
Sep 22, 2008
by
Nathan Haug
Browse files
#278800 by Moonshine. Error in e-mail valididity regex.
parent
7a1148d6
Changes
1
Hide whitespace changes
Inline
Side-by-side
link.module
View file @
0309db68
...
...
@@ -865,10 +865,10 @@ function link_validate_url($text) {
$anchor
=
"(#[a-z0-9_\-\.~+%=&,$'():;*@\[\]]*)"
;
// The rest of the path for a standard URL.
$end
=
$directories
.
'?'
.
$query
.
'?'
.
$anchor
.
'?'
.
'$/i'
;
$end
=
$directories
.
'?'
.
$query
.
'?'
.
$anchor
.
'?'
.
'$/i'
;
$user
=
'[a-zA-Z0-9_\-\.\+\^!#\$%&*+\/\=\?\`\|\{\}~\'\[\]]+'
;
$email_pattern
=
'/^mailto:'
.
$user
.
'@'
.
'('
.
$domain
.
'|'
.
$ipv4
.
'|'
.
$ipv6
.
'|localhost)'
.
$query
.
'$/'
;
$email_pattern
=
'/^mailto:'
.
$user
.
'@'
.
'('
.
$domain
.
'|'
.
$ipv4
.
'|'
.
$ipv6
.
'|localhost)'
.
$query
.
'
?
$/'
;
if
(
strpos
(
$text
,
'<front>'
)
===
0
)
{
return
LINK_FRONT
;
...
...
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