diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt index 39645ffe29..b07fade97c 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt @@ -1053,9 +1053,9 @@ var shelf_number = $(this).data("shelfnumber"); var is_shared = $(this).data("shared"); var count = $(this).data("count"); - var message = "

" + shelf_name + "

"; + var message = "

" + escape_str(shelf_name) + "

"; if( count ){ - message += "

" + _("Items on this list:") + " " + count + "

"; + message += "

" + _("Items on this list:") + " " + escape_str(count) + "

"; } if( is_shared ){ message += "

" + _("This list is shared. Other users will lose access to it.") + "

"; @@ -1072,7 +1072,7 @@ e.preventDefault(); var shelf_name = $(this).data("shelfname"); var shelf_number = $(this).data("shelfnumber"); - confirmModal( shelf_name, _("Are you sure you want to remove sharing? You will no longer have access to the list."), _("Yes, remove sharing"), _("No, do not remove sharing"), function( result ){ + confirmModal( escape_str(shelf_name), _("Are you sure you want to remove sharing? You will no longer have access to the list."), _("Yes, remove sharing"), _("No, do not remove sharing"), function( result ){ if( result ){ $("#unshare" + shelf_number ).submit(); }