Skip to content
This repository has been archived by the owner on Nov 9, 2022. It is now read-only.

req:required() strips out '+' characters #263

Closed
bradmann opened this issue Aug 1, 2014 · 1 comment
Closed

req:required() strips out '+' characters #263

bradmann opened this issue Aug 1, 2014 · 1 comment
Milestone

Comments

@bradmann
Copy link
Contributor

bradmann commented Aug 1, 2014

This query

let $var := req:required("q", "type=xs:string")
return xdmp:log($var)

with the input
"this is my
++test input"

is stripping out the '+' characters from the input (replacing them with spaces). The characters are being sent across properly url encoded as %2B. Replacing req:required() with xdmp:get-request-field() works correctly.

paxtonhare added a commit that referenced this issue Aug 28, 2014
#263 don't double decode values from xdmp:get-request-field()
@paxtonhare
Copy link
Contributor

pull request fixes this

@paxtonhare paxtonhare modified the milestone: v1.6 Oct 31, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants