Update of /cvsroot/webnotes/webnotes/core
In directory usw-pr-cvs1:/tmp/cvs-serv1269/core
Modified Files:
string_api.php
Log Message:
- Fixed a problem where http://xxx/yyy.html was not correctly hyperlinked. Only the http://xxx portion was done.
Index: string_api.php
===================================================================
RCS file: /cvsroot/webnotes/webnotes/core/string_api.php,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -d -r1.12 -r1.13
--- string_api.php 30 Sep 2002 02:40:51 -0000 1.12
+++ string_api.php 1 Oct 2002 13:19:45 -0000 1.13
@@ -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);
}
|