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
c69d41df
Commit
c69d41df
authored
Jun 06, 2008
by
Nathan Haug
Browse files
#254307 and #194654. Adding \ and | to accepted query strings in URLs validation.
parent
121b05c2
Changes
1
Hide whitespace changes
Inline
Side-by-side
link.module
View file @
c69d41df
...
...
@@ -859,7 +859,8 @@ function link_validate_url($text) {
$internal_pattern
=
"/^([a-z0-9_\-+\[\]]+)"
;
$directories
=
"(\/[a-z0-9_\-\.~+%=&,$'():;*@\[\]]*)*"
;
$query
=
"(\/?\?([?a-z0-9+_\-\.\/%=&,$'():;*@\[\]]*))"
;
// Yes, four backslashes == a single backslash.
$query
=
"(\/?\?([?a-z0-9+_|\-\.\/
\\\\
%=&,$'():;*@\[\]]*))"
;
$anchor
=
"(#[a-z0-9_\-\.~+%=&,$'():;*@\[\]]*)"
;
// The rest of the path for a standard 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