Commit 840fe732 by Qiang Xue

Merge pull request #6641 from DaSourcerer/HttpCache-etag-zero-padding-removal

Strip zero padding from ETag strings
parents 6e46ca0d e288c54e
...@@ -12,6 +12,7 @@ Yii Framework 2 Change Log ...@@ -12,6 +12,7 @@ Yii Framework 2 Change Log
- Enh #6467: `ActiveForm` will scroll to the nearest visible element when the first error input is hidden (newartix) - Enh #6467: `ActiveForm` will scroll to the nearest visible element when the first error input is hidden (newartix)
- Enh #6488: Support changing `yii\base\Theme::basePath` during runtime (qiangxue) - Enh #6488: Support changing `yii\base\Theme::basePath` during runtime (qiangxue)
- Chg #6427: In case of invalid route web application now throws exception with "Page not found" instead of "Invalid Route" (cebe, samdark) - Chg #6427: In case of invalid route web application now throws exception with "Page not found" instead of "Invalid Route" (cebe, samdark)
- Chg #6641: removed zero padding from ETag strings (DaSourcerer)
2.0.1 December 07, 2014 2.0.1 December 07, 2014
----------------------- -----------------------
......
...@@ -191,6 +191,6 @@ class HttpCache extends ActionFilter ...@@ -191,6 +191,6 @@ class HttpCache extends ActionFilter
*/ */
protected function generateEtag($seed) protected function generateEtag($seed)
{ {
return '"' . base64_encode(sha1($seed, true)) . '"'; return '"' . rtrim(base64_encode(sha1($seed, true)), '=') . '"';
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment