Browse files

fix xss

  • Loading branch information...
1 parent 104244e commit 22e37b1e7c056ec7fa66dec5e600a12d5d05e99f @jamesward committed Apr 13, 2012
Showing with 3 additions and 3 deletions.
  1. +1 −1 app/views/Application/index.html
  2. +1 −1 conf/application.conf
  3. +1 −1 conf/dependencies.yml
View
2 app/views/Application/index.html
@@ -15,7 +15,7 @@
$(function() {
$.get("bars.json", function(data) {
$.each(data, function(index, item) {
- $("#bars").append("<li>Bar " + item.name + "</li>");
+ $("#bars").append($("<li>").text(item.name));
});
});
});
View
2 conf/application.conf
@@ -1,6 +1,6 @@
# This is the main configuration file for the application.
# ~~~~~
-application.name=myapp
+application.name=playbars
# Application mode
# ~~~~~
View
2 conf/dependencies.yml
@@ -1,4 +1,4 @@
# Application dependencies
require:
- - play
+ - play 1.2.4

0 comments on commit 22e37b1

Please sign in to comment.