You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: saltgui/static/scripts/Documentation.js
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -310,15 +310,15 @@ export class Documentation {
310
310
311
311
switch(concreteModules.length){
312
312
case0:
313
-
html+="<p>'"+cmd[1]+"' is an unknown module name. We'll just assume it actually exists. The links below (if any) might not work.</p>";
313
+
html+="<p>'"+Documentation._escapeHtml(cmd[1])+"' is an unknown module name. We'll just assume it actually exists. The links below (if any) might not work.</p>";
314
314
break;
315
315
case1:
316
316
// simple modules case
317
317
// wheel/runners cases are always simple
318
318
if(cmd[0]!=="modules"){
319
-
html+="<p>Module-name '"+cmd[0]+"."+cmd[1]+"' cannot be verified. We'll just assume it actually exists. The links below might not work.</p>";
319
+
html+="<p>Module-name '"+Documentation._escapeHtml(cmd[0])+"."+Documentation._escapeHtml(cmd[1])+"' cannot be verified. We'll just assume it actually exists. The links below might not work.</p>";
320
320
}elseif(cmd[1]!==concreteModules[0]){
321
-
html+="<p>The internal name for '"+cmd[1]+"' is '"+concreteModules[0]+"'.</p>";
321
+
html+="<p>The internal name for '"+Documentation._escapeHtml(cmd[1])+"' is '"+Documentation._escapeHtml(concreteModules[0])+"'.</p>";
0 commit comments