management: Sanitize vhost names in restart forms
This commit is contained in:
parent
0ee99d5169
commit
cfce31ef05
|
@ -41,7 +41,7 @@
|
|||
<% if (vhost.cluster_state[node] == "stopped"){ %>
|
||||
<form action="#/restart_vhost" method="post">
|
||||
<input type="hidden" name="node" value="<%= node %>"/>
|
||||
<input type="hidden" name="vhost" value="<%= vhost.name %>"/>
|
||||
<input type="hidden" name="vhost" value="<%= fmt_string(vhost.name) %>"/>
|
||||
<input type="submit" value="Restart"/>
|
||||
</form>
|
||||
<% } %>
|
||||
|
|
|
@ -92,7 +92,7 @@
|
|||
<% if (state == "stopped"){ %>
|
||||
<form action="#/restart_vhost" method="post" class="confirm">
|
||||
<input type="hidden" name="node" value="<%= node %>"/>
|
||||
<input type="hidden" name="vhost" value="<%= vhost.name %>"/>
|
||||
<input type="hidden" name="vhost" value="<%= fmt_string(vhost.name) %>"/>
|
||||
<input type="submit" value="Restart"/>
|
||||
</form>
|
||||
<% } %>
|
||||
|
|
Loading…
Reference in New Issue