##// END OF EJS Templates
pull-requests: added missing escapeMarkup.
marcink -
r2995:c4ee2d0b default
parent child
Show More
@@ -226,9 +226,9
226 };
226 };
227 };
227 };
228
228
229 var formatRefSelection = function(item) {
229 var formatRefSelection = function(data, container, escapeMarkup) {
230 var prefix = '';
230 var prefix = '';
231 var refData = item.id.split(':');
231 var refData = data.id.split(':');
232 if (refData[0] === 'branch') {
232 if (refData[0] === 'branch') {
233 prefix = '<i class="icon-branch"></i>';
233 prefix = '<i class="icon-branch"></i>';
234 }
234 }
@@ -239,9 +239,9
239 prefix = '<i class="icon-tag"></i>';
239 prefix = '<i class="icon-tag"></i>';
240 }
240 }
241
241
242 var originalOption = item.element;
242 var originalOption = data.element;
243 return prefix + item.text;
243 return prefix + escapeMarkup(data.text);
244 };
244 };formatSelection:
245
245
246 // custom code mirror
246 // custom code mirror
247 var codeMirrorInstance = $('#pullrequest_desc').get(0).MarkupForm.cm;
247 var codeMirrorInstance = $('#pullrequest_desc').get(0).MarkupForm.cm;
General Comments 0
You need to be logged in to leave comments. Login now