Forums / Developer / Last-Modified header format problem

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

eZ debug

Timing: Jan 19 2025 09:42:29
Script start
Timing: Jan 19 2025 09:42:29
Module start 'content'
Timing: Jan 19 2025 09:42:29
Module end 'content'
Timing: Jan 19 2025 09:42:29
Script end

Main resources:

Total runtime0.0198 sec
Peak memory usage2,048.0000 KB
Database Queries4

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0071 588.9766180.8281
Module start 'content' 0.00710.0064 769.804794.0078
Module end 'content' 0.01340.0063 863.812570.7031
Script end 0.0197  934.5156 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002211.3613120.0002
Check MTime0.00115.3102120.0001
Mysql Total
Database connection0.00104.882410.0010
Mysqli_queries0.003115.849740.0008
Looping result0.00000.126520.0000
Template Total0.005930.010.0059
Template load0.00083.957010.0008
Template processing0.005226.027810.0052
Override
Cache load0.00062.895510.0006
General
dbfile0.00188.9286100.0002
String conversion0.00000.042230.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs