Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,10 @@ public void renderGridCellContents(RenderContext ctx, Writer out) throws IOExcep
.at(src, PageFlowUtil.staticResourceUrl("_images/plus.gif"))),
HtmlString.NBSP)
.appendTo(out);
pageConfig.addHandler(spanId, "click", "viewExperimentDetails(this,'" + container.getPath() + "', '" + id + "','" + detailsPage + "')");
pageConfig.addHandler(spanId, "click", "viewExperimentDetails(this,"
+ PageFlowUtil.jsString(container.getPath())
+ ", '" + id + "', "
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might as well handle them all the same way.

Suggested change
+ ", '" + id + "', "
+ ", " + PageFlowUtil.jsString(id) + ", "

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'id' is a non-null Integer so does not need to be quoted, I think.

I added some HTML-escaping in related code. If you could take another look that would be great.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're right. I somehow thought it was a string.

+ PageFlowUtil.jsString(detailsPage) + ")");
}
super.renderGridCellContents(ctx, out);
}
Expand Down