safari form submit has empty form field names in POST data, causes failure with perl CGI
|Reported by:||guest||Owned by:||gogo|
I'm using the 0.95 release on a test version of my web site, but the same issue occurs on the online demo extended version.
When the form is submitted in Safari 3.2.1, the POST data has some extra data which looks like this:
Note the first three parameters have no name, the third one also has no value. This seems to work with PHP's CGI form processing library, but the perl standard CGI.pm (version 3.42) stops at the first empty field name. The end result of this is that when the form is submitted to a perl program, no data is processed.
I used the Burp Suite HTTP proxy to capture the above POST data, and if I alter the data to give fake names to the first three fields (or just delete them altogether) and forward it to the web server, then the perl program processes the data from the text area field just fine.
I tried the nightly build demo and it too submits those empty field names in Safari.
In Firefox, the empty field names are not submitted as part of the POST data, so there are no problems with processing the rest of the fields in a perl program.