management: Sanitize vhost names in restart forms

This commit is contained in:
Michael Davis 2025-06-17 11:54:07 -04:00
parent 0ee99d5169
commit cfce31ef05
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View File

@ -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>
<% } %>

View File

@ -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>
<% } %>