Commit cc91389d authored by Nathan Haug's avatar Nathan Haug
Browse files

Correct regex preventing links from being entered. Issue #100366

parent dbd748a2
......@@ -340,7 +340,7 @@ function link_validate_url($text) {
$external_pattern =
// protocol
'/^(' . $allowed_protocols . ':\/\/)?'.
'/^((' . $allowed_protocols . '):\/\/)?'.
'('.
// domains
'(([a-z0-9]([a-z0-9\-_]*\.)+)(aero|arpa|biz|com|coop|edu|gov|info|int|jobs|mil|museum|name|nato|net|org|pro|travel|mobi|[a-z]{2}))'.
......
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