Skip to content

Commit

Permalink
json_escape user input
Browse files Browse the repository at this point in the history
  • Loading branch information
steveyken committed Aug 26, 2014
1 parent 6369bf8 commit 9546449
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/layouts/application.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
:javascript
#{yield :javascript}
var _ffcrm_users = [
#{User.all.map{|u| "\"#{u.full_name} (@#{u.username})\"" }.join(",\n")}
#{User.all.map{|u| "\"#{j u.full_name} (@#{j u.username})\"" }.join(",\n")}
];

<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">
Expand Down

0 comments on commit 9546449

Please sign in to comment.