andy-h
2/5/2014 - 7:00 PM

Fixes encodeURI() to comply with RFC 3986 where "[" and "]" are reserved characters.

Fixes encodeURI() to comply with RFC 3986 where "[" and "]" are reserved characters.

(function (){
	"use strict";
	var oldEncodeURI = encodeURI;
	encodeURI = function encodeURI(str){ return oldEncodeURI(str).replace(/%5B/ig, "[").replace(/%5D/ig, "]"); };
})();