Skip to content

Commit d6cc15a

Browse files
Merge commit from fork
Management UI: escape virtual host names in virtual host restart forms (cherry picked from commit 60be7d8)
1 parent e3e610c commit d6cc15a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

deps/rabbitmq_management/priv/www/js/tmpl/vhost.ejs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
<% if (vhost.cluster_state[node] == "stopped"){ %>
4242
<form action="#/restart_vhost" method="post">
4343
<input type="hidden" name="node" value="<%= node %>"/>
44-
<input type="hidden" name="vhost" value="<%= vhost.name %>"/>
44+
<input type="hidden" name="vhost" value="<%= fmt_string(vhost.name) %>"/>
4545
<input type="submit" value="Restart"/>
4646
</form>
4747
<% } %>

deps/rabbitmq_management/priv/www/js/tmpl/vhosts.ejs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@
9292
<% if (state == "stopped"){ %>
9393
<form action="#/restart_vhost" method="post" class="confirm">
9494
<input type="hidden" name="node" value="<%= node %>"/>
95-
<input type="hidden" name="vhost" value="<%= vhost.name %>"/>
95+
<input type="hidden" name="vhost" value="<%= fmt_string(vhost.name) %>"/>
9696
<input type="submit" value="Restart"/>
9797
</form>
9898
<% } %>

0 commit comments

Comments
 (0)