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

Adding localhost to accepted domains. Issue #109835.

parent 8842d6d5
......@@ -392,7 +392,7 @@ function link_validate_url($text) {
$port = '(:([0-9]{1,4}))';
// Pattern specific to eternal links
$external_pattern = '/^' . $protocol . '?'. '(' . $domain . '|' . $ipv4 . '|' . $ipv6 . ')' . $port . '?';
$external_pattern = '/^' . $protocol . '?'. '(' . $domain . '|' . $ipv4 . '|' . $ipv6 . '|localhost)' . $port . '?';
// Pattern specific to internal links
$internal_pattern = "/^([a-z0-9_\-+]+)";
......
Supports Markdown
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