in reply to CGI Input with Escaped Characters

..(& for example), it gets sent in as %26 ... it prints to the screen with &

How are you seeing that it is being sent as %26 ?

poj

Replies are listed 'Best First'.
Re^2: CGI Input with Escaped Characters
by hoyt (Acolyte) on Apr 02, 2017 at 16:47 UTC
    I echo out the string in a JS console in my browser when troubleshooting. If I take that whole string to an hmac generator site, I can tell that the hash matches with %26, and if I print it from the Perl command line, it matches the hash from an & sign.

      It seems like you need to convert & back to %26

      my $raw_data =  uri_escape $query->param('data'); # not uri_unescape
      
      poj