Guest User

html_esc and urlencode

a guest
Feb 23rd, 2012
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. Send a test string: !@#$%^&*()_-+='";:,.
  2. Query string results in: !%40%23%24%25^%26amp%3B*%28%29_-%2B%3D%26%23039%3B%26quot%3B%3B%3A%2C.
  3. Received in Salesforce: !@#$%^&*()_-+='";:,.
  4.  
  5. Technically it is clear that upon the merge of the response first an esc_html is done (encoding characters as &'" to & ' "
  6. Then the query string is run through urlencode, which changes something like ' to %26%23039%3B which then by Salesforce is translated back to '
Advertisement
Add Comment
Please, Sign In to add comment