From:             sjoerd-php at linuxonly dot nl
Operating system: Linux
PHP version:      5.2.11
PHP Bug Type:     Apache2 related
Bug description:  Content-Location header is not overwritten

Description:
------------
If you access a script by a name other than its filename, it generates a
Content-Location HTTP header. For example, if you request '/a' instead of
'/a.php', the Content-Location header contains 'a.php'.

If you try to override the Content-Location header in the script, like in
the code example below, the response contains two Content-Location headers.

Reproduce code:
---------------
<?php
header('Content-Location: http://www.example.org/a.php');
?>

Expected result:
----------------
One Content-Location header in result:
Content-Location: http://www.example.org/a.php

Actual result:
--------------
Two Content-Location headers in result:
Content-Location: a.php
Content-Location: http://www.example.org/a.php

-- 
Edit bug report at http://bugs.php.net/?id=49932&edit=1
-- 
Try a snapshot (PHP 5.2):            
http://bugs.php.net/fix.php?id=49932&r=trysnapshot52
Try a snapshot (PHP 5.3):            
http://bugs.php.net/fix.php?id=49932&r=trysnapshot53
Try a snapshot (PHP 6.0):            
http://bugs.php.net/fix.php?id=49932&r=trysnapshot60
Fixed in SVN:                        
http://bugs.php.net/fix.php?id=49932&r=fixed
Fixed in SVN and need be documented: 
http://bugs.php.net/fix.php?id=49932&r=needdocs
Fixed in release:                    
http://bugs.php.net/fix.php?id=49932&r=alreadyfixed
Need backtrace:                      
http://bugs.php.net/fix.php?id=49932&r=needtrace
Need Reproduce Script:               
http://bugs.php.net/fix.php?id=49932&r=needscript
Try newer version:                   
http://bugs.php.net/fix.php?id=49932&r=oldversion
Not developer issue:                 
http://bugs.php.net/fix.php?id=49932&r=support
Expected behavior:                   
http://bugs.php.net/fix.php?id=49932&r=notwrong
Not enough info:                     
http://bugs.php.net/fix.php?id=49932&r=notenoughinfo
Submitted twice:                     
http://bugs.php.net/fix.php?id=49932&r=submittedtwice
register_globals:                    
http://bugs.php.net/fix.php?id=49932&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=49932&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=49932&r=dst
IIS Stability:                       
http://bugs.php.net/fix.php?id=49932&r=isapi
Install GNU Sed:                     
http://bugs.php.net/fix.php?id=49932&r=gnused
Floating point limitations:          
http://bugs.php.net/fix.php?id=49932&r=float
No Zend Extensions:                  
http://bugs.php.net/fix.php?id=49932&r=nozend
MySQL Configuration Error:           
http://bugs.php.net/fix.php?id=49932&r=mysqlcfg

Reply via email to