skip the url conversion if the url is inside double quotes (") because this url could...
[acontent.git] / docs / home / classes / ContentUtility.class.php
index 2c3efbb..d66500e 100644 (file)
@@ -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:\r
                // <p>http://google.ca</p>\r
                // "http://google.ca" \r
-               $text = preg_replace('/(^|[\n ])([\w]*?[\"]*)((?<!(\[media\]))http(s)?:\/\/[\w]+[^ \,\"\n\r\t\)<]*)/is', \r
+               $text = preg_replace('/(^|[\n ])([\w]*?)((?<!(\[media\]))http(s)?:\/\/[\w]+[^ \,\"\n\r\t\)<]*)/is', \r
                                     '$1$2<a href="$3">$3</a>', $text);\r
                \r
                // convert email address to clickable URL that pops up "send email" interface with the address filled in\r