function init_dashboard() {
portal = new Portal(options);
<% if params[:highlight] %>
- portal.highlightWidget(<%= escape_javascript(params[:highlight]) -%>);
+ portal.highlightWidget('<%= escape_javascript(params[:highlight]) -%>');
<% end %>
}
$j(document).ready(function(){init_dashboard();});
<% if @server_id %>
<p>
<br/>
- <span class="<%= @bad_id ? 'error' : 'notice' -%>" id="server_id"><big><%= @server_id -%></big></span>
+ <span class="<%= @bad_id ? 'error' : 'notice' -%>" id="server_id"><big><%= h @server_id -%></big></span>
<% if @bad_id %>
<span class="error"><%= message('server_id_configuration.bad_key') -%></span>
<% end %>
<h3><%= message('server_id_configuration.organisation.title') -%></h3>
</th>
<td>
- <input type="text" name="organisation" value="<%= @organisation -%>" size="50"/>
+ <input type="text" name="organisation" value="<%= h @organisation -%>" size="50"/>
<br/>
<p class="marginbottom10"><%= message('server_id_configuration.organisation.desc') -%></p>
<span class="note"><%= message('server_id_configuration.organisation.pattern') -%></span>
<h3><%= message('server_id_configuration.ip.title') -%></h3>
</th>
<td>
- <input type="text" name="address" value="<%= @address -%>"/>
+ <input type="text" name="address" value="<%= h @address -%>"/>
<p class="marginbottom10"><%= message('server_id_configuration.ip.desc') -%></p>
<ul class="marginbottom10 bullet">
<% @valid_addresses.each_with_index do |ip_address, index| %>