Skip to content

Commit 7d3f7d8

Browse files
committed
Prevent junk data entry.
1 parent f98cb6d commit 7d3f7d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Spe/Client/Applications/PowerShellMultiValuePrompt.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1107,7 +1107,7 @@ protected void OKClick()
11071107
var error = variable["Error"] as string;
11081108
if (!string.IsNullOrEmpty(error))
11091109
{
1110-
SheerResponse.SetInnerHtml($"var_{name}_validator", error);
1110+
SheerResponse.SetInnerHtml($"var_{name}_validator", WebUtil.SafeEncode(error));
11111111
canClose = false;
11121112
continue;
11131113
}

0 commit comments

Comments
 (0)