php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #10663 Content negotiantion seems to fail when using PHP in <form action="">-field
Submitted: 2001-05-04 08:36 UTC Modified: 2001-05-28 00:01 UTC
From: lars at bahner dot com Assigned:
Status: Closed Package: Apache related
PHP Version: 4.0.4pl1 OS: Debian GNU/Linux 2.3 (woody)
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: lars at bahner dot com
New email:
PHP Version: OS:

 

 [2001-05-04 08:36 UTC] lars at bahner dot com
Taking a dum example as:
<form action="<?php echo "hello" ?>" method="post">
</form>

Makes apache/netscape not being able to negotiate the content-type of the document. The document is named /php/logs/log.php but is referred to as /php/logs/log using content-negotiation on apache-ssl (1.3.14.2.1+).

Referring to the document as /php/logs/log.php makes the document tick.

Removing the PHP-code make the /php/logs/log refernce work again!

I have many (The Debian standard amount) modules installed and my php.ini is very long. Please don't hesitate me for the details on this.

TYMLTN

------------------

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-05-04 08:37 UTC] lars at bahner dot com
Specified PHP4.0.4pl5
 [2001-05-28 00:01 UTC] sniper@php.net
If this happens with PHP 4.0.5 please reopen.

--Jani

 [2002-11-24 17:33 UTC] carp_a_dieum at yahoo dot com
This may have been addressed in a later post, but I'm seeing the same thing (if I read it right) in php 4.2.3. I can link to /dir/page.html or /dir/page and both are the same page content. The same thing happends for .htm and .php extensions; no extension is necessary. This leads me to believe it's something in the apache config. It must be checking for a directory name first, if it is not a directory it runs through the mime definitions for files.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 20 03:01:28 2024 UTC