]> git.joonet.de Git - adminer.git/commitdiff
Revert "Better <noscript> removal"
authorJakub Vrana <jakub@vrana.cz>
Mon, 31 Jan 2011 10:57:35 +0000 (11:57 +0100)
committerJakub Vrana <jakub@vrana.cz>
Mon, 31 Jan 2011 10:57:35 +0000 (11:57 +0100)
This reverts commit f40b874c0bfa9dd5df89c6daf238e9fcaf6a3040.

adminer/static/functions.js

index 64a2ce2f349aa4f55329d8cdca91ec60ac1e262e..e2906fed32e130313aa170a14dfea5bc4d14dd7e 100644 (file)
@@ -102,7 +102,7 @@ function setHtml(id, html) {
                if (html == undefined) {
                        el.parentNode.innerHTML = '&nbsp;';
                } else {
-                       el.innerHTML = ('' + html).replace(/<noscript>[\0-\uFFFF]*<\/noscript>/gi, ''); // required for Google Chrome
+                       el.innerHTML = html.replace(/<noscript>.*<\/noscript>/i, ''); // required for Google Chrome // hopes that there will be only one <noscript> on each line
                }
        }
 }