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 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
…dling the empty string case
ndw added a commit that referenced this issue Jul 30, 2015
…dling the empty string case
@ndw ndw closed this Aug 26, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.