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
91b6a753
Commit
91b6a753
authored
Apr 20, 2009
by
John C Fiala
Browse files
bug report #436020 by joshuajabbour: Allow exclamation mark in URL, as per RFC 1738.
parent
99a070dd
Changes
1
Hide whitespace changes
Inline
Side-by-side
link.module
View file @
91b6a753
...
...
@@ -673,8 +673,8 @@ function link_validate_url($text) {
// Pattern specific to internal links.
$internal_pattern
=
"/^([a-z0-9_\-+\[\]]+)"
;
$directories
=
"(\/[a-z0-9_\-\.~+%=&,$'():;*@\[\]]*)*"
;
// Yes, four backslashes == a single backslash.
$directories
=
"(\/[a-z0-9_\-\.~+%=&,$'
!
():;*@\[\]]*)*"
;
// Yes, four backslashes == a single backslash.
$query
=
"(\/?\?([?a-z0-9+_|\-\.\/
\\\\
%=&,$'():;*@\[\]]*))"
;
$anchor
=
"(#[a-z0-9_\-\.~+%=&,$'():;*@\[\]]*)"
;
...
...
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