Werk #22663 · Oct 8, 26
Check HTML form submit: Fix form selection and submission
The active check Check HTML form submit had several bugs when selecting and submitting a form:
- With exactly one form on the page and Name of the form to populate and
submit configured, the check went
CRITalthough the name matched, and submitted the form if the name did not match. - An absolute URL as form
actionwas appended to the page's directory, and an emptyactionmade the check crash. - An absolute path as form
action, e.g./login, referred to the monitored host instead of the host the page was loaded from after redirects. - For forms with method
GET, the query of the form'saction(or of the page URL if there is noaction) is now replaced by the form data, as a browser does. Before, the form data was appended to that query. - Input fields like
<input name="token" value>were submitted with the valueNoneinstead of an empty value. - A
methodornameattribute without a value in theformtag could make the check crash.
Details
- Class:
- Bug Fixes
- Level:
- Trivial
- Component:
- Checks
- Versions:
- 3.0.0b1Not yet releasedAll Editions
- 2.5.0p16All Editions