Files
yii2/framework
armab a324b26c7f BaseMailer: strip <style> content from TextBody fix
If ```$htmlLayout``` contains <style> tags with CSS rules,
strip_tags here: https://github.com/yiisoft/yii2/blob/master/framework/mail/BaseMailer.php#L189
won't clean those CSS rules.

Actual html: 
```html
<html>
    <head>
        <style>
            .text-secondary {color: #93959A;}
            [...]
            [Other CSS rules]
            [...]
        </style>
    </head>
    <body>
        <div>Some content</div>
    </body>
</html>
```

Will look this way in TEXT version of Email: 
```
.text-secondary {color: #93959A;}
[...]
[Other CSS rules]
[...]
Some content
```

--------------

If TEXT version of Email differs drastically from visible content of HTML version,
it can be result that some penalty points will apply to such mails: 
http://wiki.apache.org/spamassassin/Rules/MPART_ALT_DIFF_COUNT


Since it's default behaviour for both yii2-app-advanced and yii2-app-basic (where stripped from tags html used for TextBody),
I believe people will stumble in this for sure, without even knowing that their emails can be penalized.


You can reproduce it by placing CSS styles in email view or layout
and test it here: http://www.mail-tester.com/ (SpamAssassin section).
2014-05-02 17:01:03 +03:00
..
2014-04-22 14:54:02 -04:00
2014-04-30 21:21:53 -04:00
2014-04-03 11:57:49 -04:00
2014-04-23 02:55:17 +02:00
2014-04-23 02:55:17 +02:00
2014-04-17 13:24:16 +02:00
2014-04-22 15:50:32 +02:00
2014-04-29 13:54:21 +02:00
2014-05-01 22:19:48 -04:00
2014-05-02 14:47:19 +04:00
2014-04-23 02:55:17 +02:00
2014-04-26 03:39:46 +02:00
2014-03-26 23:03:18 +01:00
2014-04-17 15:35:09 +04:00
2014-04-07 09:43:03 +04:00
2014-04-23 02:55:17 +02:00
2014-01-10 21:41:43 -05:00
2014-01-10 21:41:43 -05:00
2014-05-01 22:19:48 -04:00
2013-11-02 15:37:25 -04:00
2014-04-16 19:29:07 -03:00
2014-01-10 21:41:43 -05:00
2014-03-20 19:54:52 -04:00

Yii PHP Framework Version 2

This is the core framework code of Yii 2.

Installation

The preferred way to install the Yii framework is through composer.

Either run

php composer.phar require --prefer-dist "yiisoft/yii2 *"

or add

"yiisoft/yii2": "*"

to the require section of your composer.json.