Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
drupal.org
link
Commits
ee32050e
Commit
ee32050e
authored
Mar 17, 2007
by
Nathan Haug
Browse files
Adding localhost to accepted domains. Issue #109835.
parent
8842d6d5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
link.module
link.module
+1
-1
No files found.
link.module
View file @
ee32050e
...
...
@@ -392,7 +392,7 @@ function link_validate_url($text) {
$port
=
'(:([0-9]{1,4}))'
;
// Pattern specific to eternal links
$external_pattern
=
'/^'
.
$protocol
.
'?'
.
'('
.
$domain
.
'|'
.
$ipv4
.
'|'
.
$ipv6
.
')'
.
$port
.
'?'
;
$external_pattern
=
'/^'
.
$protocol
.
'?'
.
'('
.
$domain
.
'|'
.
$ipv4
.
'|'
.
$ipv6
.
'
|localhost
)'
.
$port
.
'?'
;
// Pattern specific to internal links
$internal_pattern
=
"/^([a-z0-9_\-+]+)"
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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