-
Notifications
You must be signed in to change notification settings - Fork 93
[SECURITY-2220] Escape plot description #72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[SECURITY-2220] Escape plot description #72
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not manually tested but that's the kind of correction that was expected 👍
Now, how to continue from here? |
Manually tested: It's working as expected, great job. Next step:
|
@@ -54,7 +54,7 @@ | |||
<div style="width:750px"> | |||
<j:if test="${it.getPlotDescription(index) != null}"> | |||
<j:if test="${!it.getPlotDescription(index).isEmpty()}"> | |||
<b>Description</b>: <j:out value="${it.getPlotDescription(index)}"/> | |||
<b>Description</b>: <span>${it.getPlotDescription(index)}</span> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doesn't even need the span
.
<b>Description</b>: ${it.getPlotDescription(index)}
would do it.
Note that j:out
specifically disables the effect of escape-by-default
and prints it verbatim. (Its counterpart st:out
always escapes what's printed, luckily there's no chance of anyone ever confusing the two 😫 .)
@ericbn could you consider a new release so we can install a fixed version please? |
I am not a maintainer of plot |
Version 2.1.11 released. |
Naive approach to address SECURITY-2220.
<j:out … />
seems to ignore escape-by-default, using a simple<span>…</span>
instead escapes the value.@Wadeck @daniel-beck
What has been done
How to test
Checklist
.github/release-drafter.yml
)