From 93fc88741abc0e841f1e4b3c8646e284e34895f9 Mon Sep 17 00:00:00 2001 From: kulikov-a <36099472+kulikov-a@users.noreply.github.com> Date: Mon, 8 Mar 2021 21:45:00 +0300 Subject: [PATCH] index.php: strip scripts from widgets before move (#4752) --- src/www/index.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/www/index.php b/src/www/index.php index 6663799e7..dd6abb024 100644 --- a/src/www/index.php +++ b/src/www/index.php @@ -263,6 +263,9 @@ include("fbegin.inc");?> // rearrange widgets to stored column $(".widgetdiv").each(function(){ var widget = $(this); + widget.find('script').each(function(){ + $(this).remove(); + }); var container = $(this).parent(); var target_col = widget.data('sortkey').split('-')[1]; if (target_col != undefined) {