Potential bug in main site code

From: Date: Fri, 12 Jul 2002 05:20:03 +0000
Subject: Potential bug in main site code
Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-11290@lists.php.net to get a copy of this message
Hello, I was viewing your source code, and found a potential "bug." The following code: if ($_SERVER["HTTP_IF_MODIFIED_SINCE"] == $tsstring){ should be changed to: if (strstr($_SERVER["HTTP_IF_MODIFIED_SINCE"], $tsstring)){ Your implementation will work fine with NS, but IE (I am using version 6) sends a header like this: If-Modified-Since: Fri, 12 Jul 2002 05:08:03 GMT; length=4192 Regards, Shannon Johnson --- Website: http://www.designcurve.net EMail: shannon@designcurve.net

« previous php.mirrors (#11290) next »