From: Ryan S. <rya...@us...> - 2005-08-07 15:29:16
|
Update of /cvsroot/mantisbt/mantisbt/core In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24244/core Modified Files: string_api.php Log Message: Fixed #6092: cvs links now work properly even if there's a newline after the filename (and optional revision) Index: string_api.php =================================================================== RCS file: /cvsroot/mantisbt/mantisbt/core/string_api.php,v retrieving revision 1.74 retrieving revision 1.75 diff -u -d -r1.74 -r1.75 --- string_api.php 31 Jul 2005 16:23:29 -0000 1.74 +++ string_api.php 7 Aug 2005 15:29:07 -0000 1.75 @@ -187,7 +187,7 @@ $t_replace_with = '[CVS] '.$t_cvs_web.'\\1?rev=\\4\\5'; } - return preg_replace( '/cvs:([^\.\s:,\?!]+(\.[^\.\s:,\?!]+)*)(:)?(\d\.[\d\.]+)?([\W\s])?/i', + return preg_replace( '/cvs:([^\.\s:,\?!<]+(\.[^\.\s:,\?!<]+)*)(:)?(\d\.[\d\.]+)?([\W\s])?/i', $t_replace_with, $p_string ); } |