X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FStreamFile.php;h=ae993d80f0569e9072d9c0cd4d7e3f6e6c7c2d33;hb=f34f02f4404f7cfa64cd1887f528888e82d28e92;hp=1451f2e7eebe50b797498396109c6d7f69ebd498;hpb=f90c740f915a825acbecf64017b226a3761720d9;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/StreamFile.php b/includes/StreamFile.php index 1451f2e7ee..ae993d80f0 100644 --- a/includes/StreamFile.php +++ b/includes/StreamFile.php @@ -17,7 +17,8 @@ does not.

header( 'Last-Modified: ' . gmdate( 'D, d M Y H:i:s', $stat['mtime'] ) . ' GMT' ); if ( !empty( $_SERVER['HTTP_IF_MODIFIED_SINCE'] ) ) { - $sinceTime = strtotime( $_SERVER['HTTP_IF_MODIFIED_SINCE'] ); + $modsince = preg_replace( '/;.*$/', '', $_SERVER['HTTP_IF_MODIFIED_SINCE'] ); + $sinceTime = strtotime( $modsince ); if ( $stat['mtime'] <= $sinceTime ) { header( "HTTP/1.0 304 Not Modified" ); return;