mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-17 14:28:53 +02:00
N°3835 Upload file name security hardening
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
{% if oUIBlock.GetShowFilename() %}
|
||||
$('#{{ oUIBlock.GetId() }}').bind('change', function() {
|
||||
var fileName = $(this).val().replace(/^.*[\\\/]/, '');
|
||||
fileName = $('<div/>').text(fileName).html();
|
||||
$('#{{ oUIBlock.GetId() }}-file-name').html(fileName);
|
||||
});
|
||||
{% endif %}
|
||||
Reference in New Issue
Block a user