From: Wil Mahan Date: Mon, 11 Oct 2004 18:54:35 +0000 (+0000) Subject: Re-exclude '<' and '>' from external links, since brion pointed X-Git-Tag: 1.5.0alpha1~1586 X-Git-Url: http://git.cyclocoop.org/%24href?a=commitdiff_plain;h=b22f8f318ac8c10db92184c08758a619836bb12b;p=lhc%2Fweb%2Fwiklou.git Re-exclude '<' and '>' from external links, since brion pointed out cases where it matters. We don't need to exclude them from external link text, to allow for e.g. bold text in the link description. --- diff --git a/includes/Parser.php b/includes/Parser.php index 303c35eed5..e5169695d5 100644 --- a/includes/Parser.php +++ b/includes/Parser.php @@ -38,7 +38,7 @@ define( 'UNIQ_PREFIX', 'NaodW29'); define( 'URL_PROTOCOLS', 'http|https|ftp|irc|gopher|news|mailto' ); define( 'HTTP_PROTOCOLS', 'http|https' ); # Everything except bracket, space, or control characters -define( 'EXT_LINK_URL_CLASS', '[^]\\x00-\\x20\\x7F]' ); +define( 'EXT_LINK_URL_CLASS', '[^]<>\\x00-\\x20\\x7F]' ); # Including space define( 'EXT_LINK_TEXT_CLASS', '[^\]\\x00-\\x1F\\x7F]' ); define( 'EXT_IMAGE_FNAME_CLASS', '[A-Za-z0-9_.,~%\\-+&;#*?!=()@\\x80-\\xFF]' );