From 45db7a778062fb69f8f6f7bc3c40b7a0b7cff7f5 Mon Sep 17 00:00:00 2001 From: Simon Brandhof Date: Fri, 6 Sep 2013 10:37:43 +0200 Subject: [PATCH] SSF-19 --- .../webapp/WEB-INF/app/views/layouts/_layout.html.erb | 10 +++++----- .../app/views/layouts/_menu_resource_settings.html.erb | 2 +- .../WEB-INF/app/views/layouts/_menu_user.html.erb | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/layouts/_layout.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/layouts/_layout.html.erb index 013e9a882fc..5d487d62881 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/views/layouts/_layout.html.erb +++ b/sonar-server/src/main/webapp/WEB-INF/app/views/layouts/_layout.html.erb @@ -50,7 +50,7 @@ <% if selected_section==Navigation::SECTION_HOME %> <% ActiveDashboard.user_dashboards(current_user, true).each do |active_dashboard| %>
  • - <%= active_dashboard.dashboard.name(true) -%> + <%= h active_dashboard.dashboard.name(true) -%>
  • <% end %> @@ -59,7 +59,7 @@ selected=request.request_uri.include?("/plugins/home/#{page_url}") %>
  • - <%= message(page.getId() + '.page', :default => page.getTitle()) -%>
  • + <%= h message(page.getId() + '.page', :default => page.getTitle()) -%> <% end %>
  • @@ -74,7 +74,7 @@ <% elsif selected_section==Navigation::SECTION_RESOURCE %> <% ActiveDashboard.user_dashboards(current_user, false).each do |active_dashboard| %>
  • - "><%= active_dashboard.dashboard.name(true) -%> + "><%= h active_dashboard.dashboard.name(true) -%>
  • <% end %>
  • @@ -89,7 +89,7 @@ page_url = (page.isController() ? "#{page.getId()}?id=#{@project.id}" : "/plugins/resource/#{@project.id}?page=#{page.getId()}") %>
  • - <%= message(page.getId() + '.page', :default => page.getTitle()) %> + <%= h message(page.getId() + '.page', :default => page.getTitle()) -%>
  • <% end %>
  • @@ -119,7 +119,7 @@ page_url = (page.isController() ? page.getId() : "/plugins/configuration/#{page.getId()}") %>
  • - <%= message(page.getId() + '.page', :default => page.getTitle()) %> + <%= h message(page.getId() + '.page', :default => page.getTitle()) %>
  • <% end %>
  • diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/layouts/_menu_resource_settings.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/layouts/_menu_resource_settings.html.erb index 2eadf79f01d..2b7cfbab980 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/views/layouts/_menu_resource_settings.html.erb +++ b/sonar-server/src/main/webapp/WEB-INF/app/views/layouts/_menu_resource_settings.html.erb @@ -35,7 +35,7 @@ controller.java_facade.getPages(Navigation::SECTION_RESOURCE_CONFIGURATION, @project.scope, @project.qualifier, @project.language, nil).each do |page| page_url = "#{page.getId()}?resource=#{@project.id}" %> -
  • <%= message(page.getId() + '.page', :default => page.getTitle()) -%>
  • +
  • <%= h message(page.getId() + '.page', :default => page.getTitle()) -%>
  • <% end end %> diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/layouts/_menu_user.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/layouts/_menu_user.html.erb index ec6a9bdaff1..9fa5eed02ab 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/views/layouts/_menu_user.html.erb +++ b/sonar-server/src/main/webapp/WEB-INF/app/views/layouts/_menu_user.html.erb @@ -1,5 +1,5 @@
  • - <%= current_user.name -%> + <%= h current_user.name -%> -
  • \ No newline at end of file + -- 2.39.5