##// END OF EJS Templates
comments: escape file-paths on commenting to prevent html breakage
ergo -
r2182:2a2643df default
parent child Browse files
Show More
@@ -670,7 +670,7 b' var CommentsController = function() {'
670 var lineno = self.getLineNumber(node);
670 var lineno = self.getLineNumber(node);
671 // create a new HTML from template
671 // create a new HTML from template
672 var tmpl = $('#cb-comment-inline-form-template').html();
672 var tmpl = $('#cb-comment-inline-form-template').html();
673 tmpl = tmpl.format(f_path, lineno);
673 tmpl = tmpl.format(escapeHtml(f_path), lineno);
674 $form = $(tmpl);
674 $form = $(tmpl);
675
675
676 var $comments = $td.find('.inline-comments');
676 var $comments = $td.find('.inline-comments');
General Comments 0
You need to be logged in to leave comments. Login now