Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

p:www-form-urldecode fails to decode empty parameter list #217

Closed
Conal-Tuohy opened this issue Jul 25, 2015 · 0 comments
Closed

p:www-form-urldecode fails to decode empty parameter list #217

Conal-Tuohy opened this issue Jul 25, 2015 · 0 comments

Comments

@Conal-Tuohy
Copy link
Contributor

Conal-Tuohy commented Jul 25, 2015

An empty parameter list can be produced by the submission of an HTML form with no 'successful' controls. e.g.

<html>
    <body>
        <form method="GET" action="">
            <select name="select" multiple="multiple">
                <option value="1">One</option>
                <option value="2">Two</option>
            </select>
            <input type="checkbox" name="checkbox"/>
            <input type="submit" value="Submit"/>
        </form>
    </body>
</html>

If the above form is submitted with neither of the option controls selected, and with the checkbox unchecked, then the set of 'successful' controls is the empty set.

<p:declare-step version="1.0" name="test" xmlns:p="http://www.w3.org/ns/xproc">
    <p:output port="result"/>
    <p:www-form-urldecode value=""/>
</p:declare-step>

Expected result:

<c:param-set xmlns:c="http://www.w3.org/ns/xproc-step"/>

Result:

ERROR: test.xpl:3:34:Badly formatted parameters
ERROR: Badly formatted parameters
ndw added a commit that referenced this issue Jul 30, 2015
ndw added a commit that referenced this issue Jul 30, 2015
@ndw ndw closed this as completed Aug 26, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants