mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-19 18:29:23 +00:00
More escapes in share/delete
This commit is contained in:
@@ -22,7 +22,7 @@ $(function () {
|
||||
hd = $('.hd', form),
|
||||
btn_ct = $(this).parents('td'),
|
||||
repo_id = btn_ct.data('id'),
|
||||
repo_name = btn_ct.attr('data-name');
|
||||
repo_name = HTMLescape(btn_ct.attr('data-name'));
|
||||
var grp_options_ct = $('#share-grp-options');
|
||||
if (!$.trim(grp_options_ct.html())) {
|
||||
var grp_options = '<ul class="option-list">';
|
||||
|
@@ -30,7 +30,7 @@ $('.repo-delete-btn').click(function() {
|
||||
cfm.css({'left': op.position().left, 'top': op.position().top + op.height() + 2, 'width':202});
|
||||
}
|
||||
var con = $('.con', cfm);
|
||||
con.html(con.html().replace('%(lib_name)s', '<span class="op-target">' + cfm.parents('td').attr('data-name') + '</span>'));
|
||||
con.html(con.html().replace('%(lib_name)s', '<span class="op-target">' + HTMLescape(cfm.parents('td').attr('data-name')) + '</span>'));
|
||||
cfm.removeClass('hide');
|
||||
$('.no',cfm).click(function() {
|
||||
cfm.addClass('hide');
|
||||
|
Reference in New Issue
Block a user