Development

Changeset 7769

You must first sign up to be able to contribute.

Changeset 7769

Show
Ignore:
Timestamp:
03/07/08 21:31:37 (7 months ago)
Author:
FabianLange
Message:

Etag was not checking correctly the enclosing quotes. fixes #3065

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/1.0/lib/filter/sfCacheFilter.class.php

    r5145 r7769  
    150150    if (sfConfig::get('sf_etag')) 
    151151    { 
    152       $etag = md5($this->response->getContent())
    153       $this->response->setHttpHeader('ETag', '"'.$etag.'"'); 
     152      $etag = '"'.md5($this->response->getContent()).'"'
     153      $this->response->setHttpHeader('ETag', $etag); 
    154154 
    155155      if ($this->request->getHttpHeader('IF_NONE_MATCH') == $etag)