[Hastymail-cvs] SF.net SVN: hastymail:[1481] trunk/hastymail2/lib/misc_functions.php
Brought to you by:
sailfrog,
slushpupie
From: <sai...@us...> - 2010-04-28 13:35:13
|
Revision: 1481 http://hastymail.svn.sourceforge.net/hastymail/?rev=1481&view=rev Author: sailfrog Date: 2010-04-28 13:35:07 +0000 (Wed, 28 Apr 2010) Log Message: ----------- another inline style cleanup fix for HTML messages Modified Paths: -------------- trunk/hastymail2/lib/misc_functions.php Modified: trunk/hastymail2/lib/misc_functions.php =================================================================== --- trunk/hastymail2/lib/misc_functions.php 2010-04-27 20:05:17 UTC (rev 1480) +++ trunk/hastymail2/lib/misc_functions.php 2010-04-28 13:35:07 UTC (rev 1481) @@ -155,7 +155,7 @@ } function strip_style_tags($str) { global $user; - $regex = '/<style [A-Z0-9\s\=\'\"\r\n\-\/\\\>\*\.\,\{\}\:\;\#\%\_\[\]\@\(\)]+<[A-Z\s\/]+>/im'; + $regex = '/<style[A-Z0-9\s\=\'\"\r\n\-\/\\\>\*\.\,\{\}\:\;\#\%\_\[\]\@\(\)\s\!]+<[A-Z\s\/]+>/im'; if (preg_match_all($regex, $str, $matches)) { foreach($matches as $vals) { $user->page_data['html_message_style'][] = $vals[0]; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |