From:             krinklemail at gmail dot com
Operating system: 
PHP version:      Irrelevant
Package:          Website problem
Bug Type:         Bug
Bug description:PHP.net: Manual "Add note" script broken on php.net

Description:
------------
Steps to reproduce problem:
* Go to http://php.net/manual/add-note.php?
sect=reserved.variables.server&redirect=http://php.net/manual/en/reserved.variable
s.server.php
* Fill in the form
* Submit the form (use Preview if you want to avoid sending the submission
for 
real)

Expected result:
* add-note.php adds type=hidden fields for GET[sect] and GET[redirect]
* Together with my input, they are sent over POST to the server
* Response: "Your submission was successful -- thanks for contributing!"

Actual result:
* add-note.php adds type=hidden fields for GET[sect] and GET[redirect]
* Together with my input, they are sent over POST to the server
* Response: The same page again, but without the form. Message "To add a
note, you 
must click on the "Add Note" button" in place of the form.


This is caused by the fact that php.net pages have a <base> tag, set to 
www.php.net and www.php.net is a 301 redirect to php.net.

So the POST request is forwarded as GET, without the POST payload. And
worst of 
all, it is a loop (pressing Submit press will loop back, and then the
same).

Assuming that www is always a redirect and that <base> is also outputted on
other 
pages, this bug will be happening on any POST request, not just
add-note.php.

Please fix the <base> tag for php.net to point to php.net, not
www.php.net.

PS: What is the purpose of this <base> tag anyway?


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


-- 
PHP Webmaster List Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to