Every line of 'window.location.search.substring(1)' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your JavaScript code is secure.
13 function search_replace(name, value) { 14 var new_search_hash = search_to_hash(); 15 new_search_hash[decodeURIComponent(name)] = []; 16 new_search_hash[decodeURIComponent(name)].push(decodeURIComponent(value)); 17 return hash_to_search(new_search_hash); 18 }