OpenClinica / enketo-oc

OpenClinica's fork of the Enketo web forms monorepo
Apache License 2.0
0 stars 1 forks source link

Slashes and Apostrophes are being hex/dec encoded via autoquery #47

Open Apotischman opened 1 year ago

Apotischman commented 1 year ago

Describe the bug When manually adding a query that includes slashes and/or apostrophes, the integrity of the query is kept. However, when an autoquery includes a slash and/or apostrophe, the characters are getting hex encoded.

To Reproduce Steps to reproduce the behavior. If applicable please include the smallest possible XLSForm or XForm (as zip or link).

  1. Add a query manually

  2. Look at the call--> the query text is not changed (correct) not_encoded

  3. Trigger an autoquery

  4. Look at the call--> the query text is changed (incorrect) Encoded

xform_slash.txt

pbowen-oc commented 1 year ago

@MartijnR - I observed / with hex encoding in the autoquery submission while ' had decimal encoding. Manual queries are passing these characters unencoded as expected.

MartijnR commented 1 year ago

http://localhost:8005/single/fs/i/j8s1nr0r?ecid=1