Skip to content

Commit

Permalink
Fix code scanning alert no. 21: DOM text reinterpreted as HTML (#3918)
Browse files Browse the repository at this point in the history
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
  • Loading branch information
alex-w and github-advanced-security[bot] authored Sep 30, 2024
1 parent 21d53a5 commit 3f65c7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/RemoteControl/webroot/js/ui/scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ define(["jquery", "api/scripts", "api/remotecontrol"], function($, scriptApi, rc
$scriptlist.change(function() {
var selection = $scriptlist.children("option").filter(":selected").val();

$scriptinfo.attr('src', "/api/scripts/info?html=true&id="+selection);
$scriptinfo.attr('src', "/api/scripts/info?html=true&id=" + encodeURIComponent(selection));


$bt_runscript.prop({
Expand Down

0 comments on commit 3f65c7f

Please sign in to comment.