luci-mod-admin-full: escape display parameter
Prevent reflected XSS through the reset button by url encoding the display parameter. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
parent
731ed77c0b
commit
bfc98bec4d
1 changed files with 1 additions and 1 deletions
|
@ -69,7 +69,7 @@ end
|
||||||
<% if querypat then %>
|
<% if querypat then %>
|
||||||
<div class="cbi-value">
|
<div class="cbi-value">
|
||||||
<%:Displaying only packages containing%> <strong>"<%=pcdata(query)%>"</strong>
|
<%:Displaying only packages containing%> <strong>"<%=pcdata(query)%>"</strong>
|
||||||
<input type="button" onclick="location.href='?display=<%=pcdata(display)%>'" href="#" class="cbi-button cbi-button-reset" style="margin-left:1em" value="<%:Reset%>" />
|
<input type="button" onclick="location.href='?display=<%=luci.http.urlencode(display)%>'" href="#" class="cbi-button cbi-button-reset" style="margin-left:1em" value="<%:Reset%>" />
|
||||||
<br style="clear:both" />
|
<br style="clear:both" />
|
||||||
</div>
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
Loading…
Reference in a new issue