Closed eirikurn closed 10 years ago
Make doctype regex less greedy, otherwise it may inject in an illegal place. Example:
<!DOCTYPE html><html><head><style> <script>//<![CDATA[ document.write('<script src="//' + (location.hostname || 'localhost') + ':35729/livereload.js?snipver=1"><\/script>') //]]></script> .some-static-css { /* ... */ } </style>
thx man!
Make doctype regex less greedy, otherwise it may inject in an illegal place. Example: