diff --git a/core/string_api.php b/core/string_api.php index 614741c89d..9ceec4345a 100644 --- a/core/string_api.php +++ b/core/string_api.php @@ -6,7 +6,7 @@ # See the README and LICENSE files for details # -------------------------------------------------------- - # $Id: string_api.php,v 1.28 2003-02-18 01:41:50 jfitzell Exp $ + # $Id: string_api.php,v 1.29 2003-02-21 01:40:08 vboctor Exp $ # -------------------------------------------------------- $t_core_dir = dirname( __FILE__ ).DIRECTORY_SEPARATOR; @@ -34,7 +34,7 @@ function string_display( $p_string ) { # bug references, and cvs references function string_display_links( $p_string ) { $p_string = string_display( $p_string ); - + $p_string = string_insert_hrefs( $p_string ); $p_string = string_process_bug_link( $p_string ); $p_string = string_process_cvs_link( $p_string ); @@ -162,10 +162,10 @@ function string_insert_hrefs( $p_string ) { return $p_string; } - $p_string = eregi_replace( "([[:alnum:]]+)://([^[:space:]]*)([[:alnum:]#?/&=])", + $p_string = eregi_replace( "([[:alnum:]]+)://([^[:space:]<]*)([[:alnum:]#?/&=])", "\\1://\\2\\3", $p_string); - $p_string = eregi_replace( "(([a-z0-9_]|\\-|\\.)+@([^[:space:]]*)([[:alnum:]-]))", + $p_string = eregi_replace( "(([a-z0-9_]|\\-|\\.)+@([^[:space:]<]*)([[:alnum:]-]))", "\\1", $p_string); return $p_string; diff --git a/doc/ChangeLog b/doc/ChangeLog index 822c62c3c5..8aa0f5af59 100644 --- a/doc/ChangeLog +++ b/doc/ChangeLog @@ -18,6 +18,7 @@ Mantis ChangeLog * Fix #2969: Bug not found error when deleting a bugnote. * Fix #2970: Sending a reminder sends two notifications. * Fix #2974: Message "APPLICATION WARNING #300" on main page. + * Fix #2976: Incorrect handling of URLs. * Fix #2978: URLs not hyperlinked in news_add page. * Fix #2982: Having email_set_category set to EMAIL_CATEGORY_PROJECT_CATEGORY erased various mail headers. * Languages: Updated German localisation.