Client-side Javascript injection by assinging the output of window.location.href.substr to a variable

Sample code:
function winLoad() {
var sessionId = ”;
if (window.location == window.top.location) {
var semicolonIndex = window.location.href.indexOf(‘;’);
if (semicolonIndex != -1) {
var questionMarkInd… Continue reading Client-side Javascript injection by assinging the output of window.location.href.substr to a variable