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
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
Showing
1 changed file
with
2 additions
and
6 deletions
+2
-6
link.module
link.module
+2
-6
No files found.
link.module
View file @
f968ffa2
...
...
@@ -420,12 +420,8 @@ function link_validate_link($text) {
')'
.
// port number
'(:([0-9]{1,4}))?'
.
// the rest of the path
"(\/[a-z0-9_\-\.~+%=&,$'():;*@]+)*"
.
// anchors
"#?[a-z0-9_\-\.~+%=&,$'():;*@]*"
.
// the query string
"(\?[a-z0-9+_\-\.\/%=&,$'():;*@]*)?"
.
//)?". //$-_.+*'()
// the rest of the path
'(\/[a-z0-9_\-\.~]+)*(\/([a-z0-9_\-\.]*)(\?[a-z0-9+_\-\.\/%=&,:]*)?)?'
.
// forward slash 0 or 1 times
'(\/)?'
.
// end of the expression, case insensitive
...
...
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