From: Cindy Li Date: Wed, 25 Aug 2010 14:44:09 +0000 (-0000) Subject: skip the url conversion if the url is inside double quotes (") because this url could... X-Git-Tag: v1.0~3 X-Git-Url: https://iam.tj/gitweb/gitweb.cgi?p=acontent.git;a=commitdiff_plain;h=855c448fb5ef8234be2ce5adb061033fac8c0de1 skip the url conversion if the url is inside double quotes (") because this url could be a part of --- 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