[Vtigercrm-commits] [vtiger-commits] r10532 - /vtigercrm/branches/5.0.3/modules/Webmails/functions.php

vtigercrm-commits at vtiger.fosslabs.com vtigercrm-commits at vtiger.fosslabs.com
Fri Mar 30 05:45:43 EDT 2007


Author: richie
Date: Fri Mar 30 03:45:35 2007
New Revision: 10532

Log:
fixes #3245

Modified:
    vtigercrm/branches/5.0.3/modules/Webmails/functions.php

Modified: vtigercrm/branches/5.0.3/modules/Webmails/functions.php
==============================================================================
--- vtigercrm/branches/5.0.3/modules/Webmails/functions.php (original)
+++ vtigercrm/branches/5.0.3/modules/Webmails/functions.php Fri Mar 30 03:45:35 2007
@@ -235,7 +235,9 @@
             "'<mocha[^>]*>.*?</mocha>'si",
             "'<meta[^>]*>'si"
         );
-        $body = preg_replace($to_removed_array, '', $body);
+	$body = preg_replace($to_removed_array, '', $body);
+	//line added to fix #3245
+	$body=preg_replace("/(http:\/\/|ftp:\/\/)([^\s,]*)/i","<a href='$1$2'>$1$2</a> target=_blank",$body    );
         $body = preg_replace("|href=\"(.*)script:|i", 'href="nocc_removed_script:', $body);
         $body = preg_replace("|<([^>]*)java|i", '<nocc_removed_java_tag', $body);
         $body = preg_replace("|<([^>]*)&{.*}([^>]*)>|i", "<&{;}\\3>", $body);





More information about the vtigercrm-commits mailing list