Skip to content

Instantly share code, notes, and snippets.

/url_decode Secret

Created August 5, 2016 06:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/d2ef9ad5280622a2213e645e53defe80 to your computer and use it in GitHub Desktop.
Save anonymous/d2ef9ad5280622a2213e645e53defe80 to your computer and use it in GitHub Desktop.
#!/usr/bin/env perl [0/981]
use strict;
use warnings;
use URI::Escape;
if ($ARGV[0] !~ /%/) {
$ARGV[0] =~ s/([0-9a-fA-F]{2})/%$1/g;
}
print uri_unescape($ARGV[0]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment