Improved sanatization for server-side templating.
This commit is contained in:
parent
35fd81e1b2
commit
08fe051269
30 changed files with 151 additions and 104 deletions
|
|
@ -19,13 +19,13 @@ along with this program. If not, see <https://www.gnu.org/licenses/>. %>
|
|||
<form action="javascript:" class="admin-list-field">
|
||||
<% Object.keys(channel.settings).forEach((key) => { %>
|
||||
<span class="admin-list-field-container">
|
||||
<label class="admin-list-label"><%- key %>:</label>
|
||||
<label class="admin-list-label"><%= key %>:</label>
|
||||
<% switch(typeof channel.settings[key]){
|
||||
case "string": %>
|
||||
<input data-key="<%- key %>" class="channel-preference-list-item" value="<%- channel.settings[key] %>">
|
||||
<input data-key="<%= key %>" class="channel-preference-list-item" value="<%= channel.settings[key] %>">
|
||||
<% break;
|
||||
default: %>
|
||||
<input data-key="<%- key %>" class="channel-preference-list-item" type="checkbox" <% if(channel.settings[key]){ %> checked <% } %>>
|
||||
<input data-key="<%= key %>" class="channel-preference-list-item" type="checkbox" <% if(channel.settings[key]){ %> checked <% } %>>
|
||||
<% break;
|
||||
} %>
|
||||
</span>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue