You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by GitBox <gi...@apache.org> on 2019/03/08 09:28:37 UTC

[GitHub] [cloudstack] DaanHoogland commented on issue #3202: Userdata incorrectly encoded

DaanHoogland commented on issue #3202: Userdata incorrectly encoded
URL: https://github.com/apache/cloudstack/issues/3202#issuecomment-470863415
 
 
   @DagSonsteboSB It *seems* to me this is due to the textarea for userdata being of ```class disallowSpecialCharacters```.
   This class is tied to a validation method that specically filters for '<' and '>'
   This would be redundant as the field is translated before passing to the API: ```encodeURIComponent(btoa(userdata))```.
   I am not sure (yet) where the translation from '>>' to '\&gt;\&gt;' is done. It is clearly happening before btoa() is called.
   
   PS '\&gt;' you write as '\\\&gt;' in github

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services