Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Character + is converted to %2B in HTTP Post

Tags:

I'm adding functionality to a GM script we use here at work, but when trying to post (cross site may I add) to another page, my posting value of CMD is different than what it is on the page.

It's supposed to be Access+My+Account+Info but the value that is posted becomes Access%2BMy%2BAccount%2BInfo.

So I guess my question is: What's escaping my value and how do I make it not escape? And if there's no way to unescape it, does anyone have any ideas of a workaround?

Thanks!

My Issue

like image 301
Skinner927 Avatar asked Jan 20 '12 18:01

Skinner927


1 Answers

%2B is the code for a +. You (or whatever framework you're using) should already be decoding the POST data server-side...

like image 196
James McLaughlin Avatar answered Oct 10 '22 17:10

James McLaughlin