]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-4012 add html escape in project key in the projects history
authorJulien Lancelot <julien.lancelot@gmail.com>
Wed, 20 Feb 2013 09:27:58 +0000 (10:27 +0100)
committerJulien Lancelot <julien.lancelot@gmail.com>
Wed, 20 Feb 2013 09:28:11 +0000 (10:28 +0100)
sonar-server/src/main/webapp/WEB-INF/app/views/layouts/_menu_projects.html.erb

index 35276f67f9bc876278ce6d76a43a240e6472e467..3a4879105011cabd391a5888ea1605ef46932f8e 100644 (file)
@@ -13,7 +13,7 @@
       <ul id="recent-history-list">
       </ul>
     </div>
-    
+
     <div>
       <ul>
         <% Project.root_qualifiers.sort.each do |qualifier| %>
@@ -22,7 +22,7 @@
       </ul>
     </div>
   </div>
-  
+
 </li>
 
 <script>
@@ -34,7 +34,7 @@
      if @resource && Project.root_qualifiers.include?(@resource.qualifier)
   %>
   else {
-    sonarRecentHistory.add('<%= @resource.key -%>',
+    sonarRecentHistory.add('<%= @resource.key -%>',
                            '<%= h @resource.name -%>',
                            '<%= Api::Utils.java_facade.getResourceType(@resource.qualifier).getIconPath() -%>');
   }