Bug #18317: Checking of the "last modified" string broken
| From: | shannon at designcurve dot net | Date: | Fri, 12 Jul 2002 15:55:23 +0000 |
| Subject: | Bug #18317: Checking of the "last modified" string broken | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-11297@lists.php.net to get a copy of this message | ||
From: shannon@designcurve.net
Operating system: NA
PHP version: 4.2.1
PHP Bug Type: Website problem
Bug description: Checking of the "last modified" string broken
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
--
Edit bug report at http://bugs.php.net/?id=18317&edit=1
--
Fixed in CVS: http://bugs.php.net/fix.php?id=18317&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=18317&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=18317&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=18317&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=18317&r=support
Expected behavior: http://bugs.php.net/fix.php?id=18317&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=18317&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=18317&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=18317&r=globals