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:
[email protected]


With regards,
Apache Git Services

Reply via email to