Skip to content

Commit 0dfd6f0

Browse files
committed
Use PageFlowUtil.jsString to escape container path.
1 parent 2f8fe93 commit 0dfd6f0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

panoramapublic/src/org/labkey/panoramapublic/query/ExperimentAnnotationsTableInfo.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,10 @@ public void renderGridCellContents(RenderContext ctx, Writer out) throws IOExcep
162162
.at(src, PageFlowUtil.staticResourceUrl("_images/plus.gif"))),
163163
HtmlString.NBSP)
164164
.appendTo(out);
165-
pageConfig.addHandler(spanId, "click", "viewExperimentDetails(this,'" + container.getPath() + "', '" + id + "','" + detailsPage + "')");
165+
pageConfig.addHandler(spanId, "click", "viewExperimentDetails(this,"
166+
+ PageFlowUtil.jsString(container.getPath())
167+
+ ", '" + id + "', "
168+
+ PageFlowUtil.jsString(detailsPage) + ")");
166169
}
167170
super.renderGridCellContents(ctx, out);
168171
}

0 commit comments

Comments
 (0)