From a2cf7f22193722dc0c0589621943e64efeb4a0dc Mon Sep 17 00:00:00 2001 From: Marc Ole Bulling Date: Wed, 16 Mar 2022 19:08:28 +0100 Subject: [PATCH] Fixed regex for html filtering --- internal/webserver/web/static/js/admin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/webserver/web/static/js/admin.js b/internal/webserver/web/static/js/admin.js index c9ca89e..5787e65 100644 --- a/internal/webserver/web/static/js/admin.js +++ b/internal/webserver/web/static/js/admin.js @@ -34,7 +34,7 @@ document.onpaste = function(event) { if (item.kind === 'string') { item.getAsString(function(s) { // If a picture was copied from a website, the origin information might be submitted, which is filtered with this regex out - const pattern = //gi; + const pattern = //gi; if (pattern.test(s) === false) { let blob = new Blob([s], { type: 'text/plain'