cvs: pear /Cache OutputCompression.php

From: Date: Sat, 23 Feb 2002 17:51:56 +0000
Subject: cvs: pear /Cache OutputCompression.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-2572@lists.php.net to get a copy of this message
chregu Sat Feb 23 12:51:56 2002 EDT Modified files: /pear/Cache OutputCompression.php Log: E_ALL fix Index: pear/Cache/OutputCompression.php diff -u pear/Cache/OutputCompression.php:1.1 pear/Cache/OutputCompression.php:1.2 --- pear/Cache/OutputCompression.php:1.1 Sun Jan 20 11:06:22 2002 +++ pear/Cache/OutputCompression.php Sat Feb 23 12:51:55 2002 @@ -50,7 +50,7 @@ * * Based upon a case study from Christian Stocker and inspired by jpcache. * -* @version $Id: OutputCompression.php,v 1.1 2002/01/20 16:06:22 sebastian Exp $ +* @version $Id: OutputCompression.php,v 1.2 2002/02/23 17:51:55 chregu Exp $ * @author Ulf Wendel <ulf.wendel@phpdoc.de>, Christian Stocker <chregu@nomad.ch> * @access public * @package Cache @@ -186,7 +186,7 @@ $etag = 'PEAR-Cache-' . md5(substr($content, -40)); header("ETag: $etag"); - if (strstr(stripslashes($HTTP_SERVER_VARS['HTTP_IF_NONE_MATCH']), $etag)) { + if (isset($HTTP_SERVER_VARS['HTTP_IF_NONE_MATCH']) && strstr(stripslashes($HTTP_SERVER_VARS['HTTP_IF_NONE_MATCH']), $etag)) { // not modified header('HTTP/1.0 304'); return;

« previous php.pear.cvs (#2572) next »