diff --git a/js/privatebin.js b/js/privatebin.js index 3b66d58a..68fd1c2f 100644 --- a/js/privatebin.js +++ b/js/privatebin.js @@ -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); diff --git a/tpl/bootstrap.php b/tpl/bootstrap.php index f6eeb805..cd58ddfa 100644 --- a/tpl/bootstrap.php +++ b/tpl/bootstrap.php @@ -72,7 +72,7 @@ endif; ?> - + diff --git a/tpl/page.php b/tpl/page.php index 1c040d2f..0be6c901 100644 --- a/tpl/page.php +++ b/tpl/page.php @@ -50,7 +50,7 @@ endif; ?> - +