Forums / Developer / Last-Modified header format problem

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

Last-Modified header format problem

Author Message

Christian Kohlschütter

Monday 28 June 2004 2:43:45 am

Hello,

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

For example, Exponential 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 Exponential'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 Exponential stable and unstable release.

--bård

Documentation: http://ez.no/doc