Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
drupal.org
link
Commits
f968ffa2
Commit
f968ffa2
authored
Aug 30, 2006
by
Nathan Haug
Browse files
Rolling back... last patch should go into CVS first
parent
65503537
Changes
1
Hide whitespace changes
Inline
Side-by-side
link.module
View file @
f968ffa2
...
@@ -420,12 +420,8 @@ function link_validate_link($text) {
...
@@ -420,12 +420,8 @@ function link_validate_link($text) {
')'
.
')'
.
// port number
// port number
'(:([0-9]{1,4}))?'
.
'(:([0-9]{1,4}))?'
.
// the rest of the path
// the rest of the path
"(\/[a-z0-9_\-\.~+%=&,$'():;*@]+)*"
.
'(\/[a-z0-9_\-\.~]+)*(\/([a-z0-9_\-\.]*)(\?[a-z0-9+_\-\.\/%=&,:]*)?)?'
.
// anchors
"#?[a-z0-9_\-\.~+%=&,$'():;*@]*"
.
// the query string
"(\?[a-z0-9+_\-\.\/%=&,$'():;*@]*)?"
.
//)?". //$-_.+*'()
// forward slash 0 or 1 times
// forward slash 0 or 1 times
'(\/)?'
.
'(\/)?'
.
// end of the expression, case insensitive
// end of the expression, case insensitive
...
...
Write
Preview
Supports
Markdown
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