make filename unique per paste ID

This commit is contained in:
El RIDO
2021-04-17 09:08:11 +02:00
parent 853a4f386f
commit bc11452259
3 changed files with 3 additions and 3 deletions

View File

@@ -3676,7 +3676,7 @@ jQuery.PrivateBin = (function($, RawDeflate) {
*/
function downloadText()
{
var filename='paste.txt';
var filename='paste-' + Model.getPasteId() + '.txt';
var text = PasteViewer.getText();
var element = document.createElement('a');