git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@14837
7612ce4b-ef26-0410-bec9-
ea0150e637f0
* body {background: blah-blah}
* and change it to .bodyclass so we can just assign it to a <div>
*/
* 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';
global $use_transparent_security_image;
if ($use_transparent_security_image) $secremoveimg = '../images/spacer.png';