Commit 2462ca67 authored by Nathan Haug's avatar Nathan Haug
Browse files

Allowing sequential slash characters in the url validation to allow second...

Allowing sequential slash characters in the url validation to allow second http:// to be used. Issue #128502.
parent 7d151ffc
......@@ -394,9 +394,7 @@ function link_validate_url($text) {
$internal_pattern = "/^([a-z0-9_\-+]+)";
// the rest of the path
$end = "(\/[a-z0-9_\-\.~+%=&,$'():;*@]+)*".
// forward slash 0 or 1 times
'(\/)?'.
$end = "(\/[a-z0-9_\-\.~+%=&,$'():;*@]*)*".
// query string
"(\/?\?[a-z0-9+_\-\.\/%=&,$'():;*@]*)?".
// anchors
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment