From e3e4de289f3393addd365564b5f238347cacf90c Mon Sep 17 00:00:00 2001 From: "Alexander V. Wolf" Date: Sat, 28 Sep 2024 21:12:42 +0700 Subject: [PATCH] Fix code scanning alert no. 4: Incomplete string escaping or encoding Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> --- plugins/RemoteControl/webroot/js/jquery-ui.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/RemoteControl/webroot/js/jquery-ui.js b/plugins/RemoteControl/webroot/js/jquery-ui.js index 1a613bf2f94b3..59c807e1c0acc 100644 --- a/plugins/RemoteControl/webroot/js/jquery-ui.js +++ b/plugins/RemoteControl/webroot/js/jquery-ui.js @@ -17942,7 +17942,7 @@ $.widget( "ui.tabs", { }, _sanitizeSelector: function( hash ) { - return hash ? hash.replace( /[!"$%&'()*+,.\/:;<=>?@\[\]\^`{|}~]/g, "\\$&" ) : ""; + return hash ? hash.replace( /[\\!"$%&'()*+,.\/:;<=>?@\[\]\^`{|}~]/g, "\\$&" ) : ""; }, refresh: function() {