From: <vb...@us...> - 2003-08-20 03:20:06
|
Update of /cvsroot/webnotes/webnotes/core In directory sc8-pr-cvs1:/tmp/cvs-serv12390/core Modified Files: string_api.php Log Message: M string_api.php - Fixed a problem where ?var=value portions of URLs were not hyperlinked. Index: string_api.php =================================================================== RCS file: /cvsroot/webnotes/webnotes/core/string_api.php,v retrieving revision 1.13 retrieving revision 1.14 diff -u -d -r1.13 -r1.14 --- string_api.php 1 Oct 2002 13:19:45 -0000 1.13 +++ string_api.php 19 Aug 2003 23:40:16 -0000 1.14 @@ -98,7 +98,7 @@ } ### -------------------- function string_hyperlink( $p_note_string ) { - $p_note_string = preg_replace("/(http:\/\/[0-9a-zA-Z\-\._\/]+)/", "<a href=\"\\1\">\\1</a>", $p_note_string); + $p_note_string = preg_replace("/(http:\/\/[0-9a-zA-Z\-\._\/\?=]+)/", "<a href=\"\\1\">\\1</a>", $p_note_string); $p_note_string = preg_replace("/(mailto:[0-9a-zA-Z\-\._@]+)/", "<a href=\"\\1\">\\1</a>", $p_note_string); return ($p_note_string); } |