Strip zero padding from ETag strings

This commit is contained in:
DaSourcerer
2014-12-24 13:36:49 +01:00
parent c0e91e2505
commit 1541e7cc23

View File

@ -188,6 +188,6 @@ class HttpCache extends ActionFilter
*/
protected function generateEtag($seed)
{
return '"' . base64_encode(sha1($seed, true)) . '"';
return '"' . rtrim(base64_encode(sha1($seed, true)), '=') . '"';
}
}