From 855c448fb5ef8234be2ce5adb061033fac8c0de1 Mon Sep 17 00:00:00 2001 From: Cindy Li Date: Wed, 25 Aug 2010 14:44:09 +0000 Subject: [PATCH] skip the url conversion if the url is inside double quotes (") because this url could be a part of --- docs/home/classes/ContentUtility.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/home/classes/ContentUtility.class.php b/docs/home/classes/ContentUtility.class.php index 2c3efbb..d66500e 100644 --- a/docs/home/classes/ContentUtility.class.php +++ b/docs/home/classes/ContentUtility.class.php @@ -303,7 +303,7 @@ class ContentUtility { // Limited conversion: It doesn't cover the case when the stuff in front of the URL is not a word. For example: //

http://google.ca

// "http://google.ca" - $text = preg_replace('/(^|[\n ])([\w]*?[\"]*)((?$3', $text); // convert email address to clickable URL that pops up "send email" interface with the address filled in -- 2.17.1