You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Simple issue in iRest.js which causes &, #, or ? anywhere in the XML document to cause an XMLSERVICE error.
Arises because JavaScript's encodeURI() does not encode these characters, resulting in an invalid URI if the XML document contains them - need to use encodeURIComponent() on each query parameter instead.
The text was updated successfully, but these errors were encountered:
encodeURI() does not encode &, #, or ? characters, so if they are
present anywhere in the submitted XML document, they will cause the URI
to be invalid and result in a 400 error. Instead, using
encodeURIComponent() on each individual URL param will safely encode all
possible characters.
Thanks to @amagid for the original PR.
Obsoletes #72Fixes#71
Co-authored-by: Aaron Magid <[email protected]>
encodeURI() does not encode &, #, or ? characters, so if they are
present anywhere in the submitted XML document, they will cause the URI
to be invalid and result in a 400 error. Instead, using
encodeURIComponent() on each individual URL param will safely encode all
possible characters.
Thanks to @amagid for the original PR.
Obsoletes #72Fixes#71
Co-authored-by: Aaron Magid <[email protected]>
Simple issue in iRest.js which causes &, #, or ? anywhere in the XML document to cause an XMLSERVICE error.
Arises because JavaScript's encodeURI() does not encode these characters, resulting in an invalid URI if the XML document contains them - need to use encodeURIComponent() on each query parameter instead.
The text was updated successfully, but these errors were encountered: