Re: [Fwd: libapreq2: apreq_body doesn't work as expected when body like "a=1&=&c=3" is passed]
Joe Schaefer <[email protected]>
| Newsgroups | gmane.comp.apache.apreq |
|---|---|
| Message-ID | <[email protected]> |
Guillaume Gimenez <[email protected]> writes: > There is a problem with the apreq_body function. > > When I submit a form with malformed input (ie fields without name like > {input type="text" name="" value=""} ) all others parameters in the form > are missed by apreq_body and resulting apr_table_t is empty. This is a feature, not a bug. The parser will stop parsing when it encounters malformed input (which this case is- the specs don't allow for empty name attributes in successful form controls). The form-data prior to the bad one should be in the table tho, and apreq_body() should return an error (not APR_SUCCESS). -- Joe Schaefer