Browse Source

Merge pull request #100 from G3z/patch-3

Escape the </script> sequence in document.write
pull/103/head
Matt Holt 10 years ago
parent
commit
010baf12fc
  1. 2
      papaparse.js

2
papaparse.js

@ -1223,7 +1223,7 @@ @@ -1223,7 +1223,7 @@
function getScriptPath()
{
var id = "worker" + String(Math.random()).substr(2);
document.write('<script id="'+id+'"></script>');
document.write('<script id="'+id+'"></s'+'cript>');
return document.getElementById(id).previousSibling.src;
}

Loading…
Cancel
Save