Commit 91b6a753 authored by John C Fiala's avatar John C Fiala
Browse files

bug report #436020 by joshuajabbour: Allow exclamation mark in URL, as per RFC 1738.

parent 99a070dd
......@@ -673,7 +673,7 @@ function link_validate_url($text) {
// Pattern specific to internal links.
$internal_pattern = "/^([a-z0-9_\-+\[\]]+)";
$directories = "(\/[a-z0-9_\-\.~+%=&,$'():;*@\[\]]*)*";
$directories = "(\/[a-z0-9_\-\.~+%=&,$'!():;*@\[\]]*)*";
// Yes, four backslashes == a single backslash.
$query = "(\/?\?([?a-z0-9+_|\-\.\/\\\\%=&,$'():;*@\[\]]*))";
$anchor = "(#[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