Development

Changeset 7770

You must first sign up to be able to contribute.

Changeset 7770

Show
Ignore:
Timestamp:
03/07/08 21:32:20 (2 years ago)
Author:
FabianLange
Message:

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

Files:

Legend:

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

    r5144 r7770  
    138138    if (sfConfig::get('sf_etag')) 
    139139    { 
    140       $etag = md5($this->response->getContent())
    141       $this->response->setHttpHeader('ETag', '"'.$etag.'"'); 
     140      $etag = '"'.md5($this->response->getContent()).'"'
     141      $this->response->setHttpHeader('ETag', $etag); 
    142142 
    143143      if ($this->request->getHttpHeader('IF_NONE_MATCH') == $etag) 

The Sensio Labs Network

Since 1998, Sensio Labs has been promoting the Open-Source software movement by providing quality web application development, training, consulting.
Sensio Labs also supports several large Open-Source projects.