mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2025-08-06 05:24:17 -04:00
Merge branch 'master' into paste-manager
This commit is contained in:
commit
4e3348795c
3 changed files with 4 additions and 3 deletions
|
@ -2760,7 +2760,8 @@ jQuery.PrivateBin = (function($, RawDeflate) {
|
|||
// extract mediaType
|
||||
const mediaType = attachmentData.substring(5, mediaTypeEnd);
|
||||
// extract data and convert to binary
|
||||
const decodedData = atob(attachmentData.substring(base64Start));
|
||||
const rawData = attachmentData.substring(base64Start);
|
||||
const decodedData = rawData.length > 0 ? atob(rawData) : '';
|
||||
|
||||
// Transform into a Blob
|
||||
const buf = new Uint8Array(decodedData.length);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue