Skip to content

Instantly share code, notes, and snippets.

Created December 20, 2013 16:02
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/8056886 to your computer and use it in GitHub Desktop.
Save anonymous/8056886 to your computer and use it in GitHub Desktop.
BT block urls are of the format:
http://blockpage.bt.com/pcstaticpage/blocked.html?policy=1&view=1&list=global_blacklist&originalUrl=PHRlc3Q+Z292LnVrPC90ZXN0Pg==
originalUrl is base64 encoded and is decoded and displayed using
http://blockpage.bt.com/pcstaticpage/library/js/pc_new_js.js
Relevant bit of code:
-----
var decodevalue=jQuery.base64Decode(returnOriginalURL);
divnewval='<span style="word-break:break-all;">'+decodevalue+'</span>'+divoldvalue;
$("#buttondisplay").show();
}
-----
No escaping!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment