rem: varArray = string.split('&'); for (i = 0; i < varArray.length; i++){ urlVars = varArray[i].split('='); if (urlVars[0].indexOf('amp;') != -1){ urlVars[0] = urlVars[0].substring(4); } urlVars[0] = encodeURIComponent(urlVars[0]); urlVars[1] = encodeURIComponent(urlVars[1]); varArray[i] = urlVars.join("="); } return varArray.join('&'); } 
add: varArray = string.split('&'); for (i = 0; i < varArray.length; i++){ urlVars = varArray[i].split('='); if (urlVars[0].indexOf('amp;') != -1){ urlVars[0] = urlVars[0].substring(4); } varArray[i] = this.encVar(urlVars[0],urlVars[1]); } return varArray.join('&'); } 
context:   this.encodeURLString = function(string){    varArray = string.split('&');    for (i = 0; i < varArray.length; i++){      urlVars = varArray[i].split('=');      if (urlVars[0].indexOf('amp;') != -1){        urlVars[0] = urlVars[0].substring(4);      }      urlVars[0] = encodeURIComponent(urlVars[0]);      urlVars[1] = encodeURIComponent(urlVars[1]);      varArray[i] = urlVars.join("=");    }    return varArray.join('&');  }
meta: 4676	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4676/95657bc6773c23c04843d51d5224df0bbd5191f0/tw-sack.js/buggy/lib/scripts/tw-sack.js