Skip to content

Commit

Permalink
Fix for XSS issue from #381
Browse files Browse the repository at this point in the history
  • Loading branch information
miketanderson committed Jul 21, 2015
1 parent 897e987 commit 5069d58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/saved_searches/view.html.erb
Expand Up @@ -16,7 +16,7 @@
}, function() {
rule.build(data.search);

$('#title-header').replaceWith('<div class="edit edit-search-title" id="title-header">'+data.title+'</div><span class="sub-title">(click to edit)</span>');
$('#title-header').replaceWith('<div class="edit edit-search-title" id="title-header">'+sanitize data.title+'</div><span class="sub-title">(click to edit)</span>');

$('.edit-search-title').editable(baseuri + "/saved/searches/title", {
height: '20px',
Expand Down

0 comments on commit 5069d58

Please sign in to comment.