Last-Modified header format problem

Author Message

Christian Kohlschütter

Monday 28 June 2004 2:43:45 am

Hello,

I have just noticed that ezPublish sends incorrectly formatted Last-Modified HTTP headers.
There is a space (blank) missing before the "GMT".

For example, ezPublish returns

"Last-Modified: Mon, 28 Jun 2004 09:14:05GMT"

instead of

"Last-Modified: Mon, 28 Jun 2004 09:14:05 GMT"

.

This violates RFC 2616 (section 3.3), and at least Jakarta HttpClient chokes on that.

The solution is to simply correct the responsible header() command in ezPublish's index.php (line 357)
from

header( 'Last-Modified: ' . gmdate( 'D, d M Y H:i:s' ) . 'GMT' );

to

header( 'Last-Modified: ' . gmdate( 'D, d M Y H:i:s' ) . ' GMT' );

Best regards,

Christian Kohlschütter
(ck [AT] rrzn [DOT] uni-hannover [DOT] de)

Bård Farstad

Monday 28 June 2004 3:49:05 am

Thanks, I've fixed that in svn now. The fix will be in the next eZ publish stable and unstable release.

--bård

Documentation: http://ez.no/doc

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.