diff options
author | Julien Lancelot <julien.lancelot@gmail.com> | 2013-08-12 13:25:44 +0200 |
---|---|---|
committer | Julien Lancelot <julien.lancelot@gmail.com> | 2013-08-12 14:37:24 +0200 |
commit | 0ec76fc3d51c4e229d9bd4070df086b4e7eafa04 (patch) | |
tree | 1b715282df496172903a2be831296dd96cd900ad /sonar-server/src/main/webapp | |
parent | 64bcd1950806fe4a52eab1783c977c16cbaae5a8 (diff) | |
download | sonarqube-0ec76fc3d51c4e229d9bd4070df086b4e7eafa04.tar.gz sonarqube-0ec76fc3d51c4e229d9bd4070df086b4e7eafa04.zip |
SONAR-4269 Remove display of resource name to prevent XSS issue
Diffstat (limited to 'sonar-server/src/main/webapp')
-rw-r--r-- | sonar-server/src/main/webapp/WEB-INF/app/controllers/api/sources_controller.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sonar-server/src/main/webapp/WEB-INF/app/controllers/api/sources_controller.rb b/sonar-server/src/main/webapp/WEB-INF/app/controllers/api/sources_controller.rb index 186cfc54c20..4b20259238b 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/controllers/api/sources_controller.rb +++ b/sonar-server/src/main/webapp/WEB-INF/app/controllers/api/sources_controller.rb @@ -27,7 +27,7 @@ class Api::SourcesController < Api::RestController if resource_id @resource=Project.by_key(resource_id) if @resource.nil? - rest_status_ko("Resource [#{resource_id}] not found", 404) + rest_status_ko('Resource not found', 404) return end end @@ -35,7 +35,7 @@ class Api::SourcesController < Api::RestController source = @resource.last_snapshot.source if !source - rest_status_ko("Resource [#{@resource.id}] has no sources", 404) + rest_status_ko('Resource has no sources', 404) else #optimization #source.snapshot.project=@resource |