php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #18317 Checking of the "last modified" string broken
Submitted: 2002-07-12 11:55 UTC Modified: 2002-08-14 17:39 UTC
From: shannon at designcurve dot net Assigned:
Status: Not a bug Package: Website problem
PHP Version: 4.2.1 OS: NA
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: shannon at designcurve dot net
New email:
PHP Version: OS:

 

 [2002-07-12 11:55 UTC] shannon at designcurve dot net
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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-07-23 15:50 UTC] hholzgra@php.net
a clear violation of RFC2616 14.25 on behalf of M$
 [2002-08-14 17:39 UTC] tal@php.net
Indeed, a violation of the RFC, marking as bogus as it's actually a bug in IE.

-Tal
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 18 11:01:28 2024 UTC