[prev in list] [next in list] [prev in thread] [next in thread]
List: squirrelmail-cvs
Subject: [SM-CVS] SF.net SVN: squirrelmail:[14837] trunk/squirrelmail/functions/mime.php
From: pdontthink--- via squirrelmail-cvs <squirrelmail-cvs () lists ! sourceforge ! net>
Date: 2020-01-06 21:22:00
Message-ID: 1578345720.809930.4283 () sfp-scm-1 ! v30 ! lw ! sourceforge ! com
[Download RAW message or body]
Revision: 14837
http://sourceforge.net/p/squirrelmail/code/14837
Author: pdontthink
Date: 2020-01-06 21:22:00 +0000 (Mon, 06 Jan 2020)
Log Message:
-----------
Better HTML email content style containment
Modified Paths:
--------------
trunk/squirrelmail/functions/mime.php
Modified: trunk/squirrelmail/functions/mime.php
===================================================================
--- trunk/squirrelmail/functions/mime.php 2020-01-06 21:17:31 UTC (rev 14836)
+++ trunk/squirrelmail/functions/mime.php 2020-01-06 21:22:00 UTC (rev 14837)
@@ -2124,7 +2124,9 @@
* body {background: blah-blah}
* and change it to .bodyclass so we can just assign it to a <div>
*/
- $content = preg_replace("|body(\s*\{.*?\})|si", ".bodyclass\\1", $content);
+ // Let's try out something that catches stuff like: body, p, div { or stuff \
like: body a { + // $content = preg_replace("|body(\s*\{.*?\})|si", \
".bodyclass\\1", $content); + $content = preg_replace("/body((?:\s*(?:,| \
)\s*[a-z0-9_-]+)*\s*\{.*?\})/si", ".bodyclass\\1", $content);
global $use_transparent_security_image;
if ($use_transparent_security_image) $secremoveimg = '../images/spacer.png';
This was sent by the SourceForge.net collaborative development platform, the world's \
largest Open Source development site.
-----
squirrelmail-cvs mailing list
List address: squirrelmail-cvs@lists.sourceforge.net
List info (subscribe/unsubscribe/change options): \
https://lists.sourceforge.net/lists/listinfo/squirrelmail-cvs
Repository: http://squirrelmail.org/svn
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic