Просмотр исходного кода

Fixed decryption of pastes without attachment, that have a password

thororm 9 лет назад
Родитель
Сommit
28b8f878dc
3 измененных файлов с 5 добавлено и 5 удалено
  1. 3 3
      js/privatebin.js
  2. 1 1
      tpl/bootstrap.php
  3. 1 1
      tpl/page.php

+ 3 - 3
js/privatebin.js

@@ -2030,7 +2030,7 @@ jQuery.PrivateBin = function($, sjcl, Base64, RawDeflate) {
         /**
          * removes the attachment
          *
-         * This automatically hides the attachment containers to, to
+         * This automatically hides the attachment containers too, to
          * prevent an inconsistent display.
          *
          * @name AttachmentViewer.removeAttachment
@@ -2043,8 +2043,8 @@ jQuery.PrivateBin = function($, sjcl, Base64, RawDeflate) {
             }
             me.hideAttachment();
             me.hideAttachmentPreview();
-            $attachmentLink.prop('href', '');
-            $attachmentLink.prop('download', '');
+            $attachmentLink.removeAttr('href');
+            $attachmentLink.removeAttr('download');
             $attachmentPreview.html('');
 
             file = undefined;

+ 1 - 1
tpl/bootstrap.php

@@ -69,7 +69,7 @@ if ($MARKDOWN):
 <?php
 endif;
 ?>
-		<script type="text/javascript" src="js/privatebin.js?<?php echo rawurlencode($VERSION); ?>" integrity="sha512-NGt12zZ/tuVwHxTSlgSv8ulzMs60+oKdV7F8NNKPv4Qks+TVEb5u3bOp49avNbzsC1ZXvviyXeLVh8F+y7wO+A==" crossorigin="anonymous"></script>
+		<script type="text/javascript" src="js/privatebin.js?<?php echo rawurlencode($VERSION); ?>" integrity="sha512-UZZm187Nx4xNowbU87beUSxYDR4JhP1D5rBANRVb3l+YyqAq36TYB385ukuXU7kH6l/E6QaLL5I+ltcTsmVsdQ==" crossorigin="anonymous"></script>
 		<!--[if lt IE 10]>
 		<style type="text/css">body {padding-left:60px;padding-right:60px;} #ienotice {display:block;} #oldienotice {display:block;}</style>
 		<![endif]-->

+ 1 - 1
tpl/page.php

@@ -47,7 +47,7 @@ if ($MARKDOWN):
 <?php
 endif;
 ?>
-		<script type="text/javascript" src="js/privatebin.js?<?php echo rawurlencode($VERSION); ?>" integrity="sha512-NGt12zZ/tuVwHxTSlgSv8ulzMs60+oKdV7F8NNKPv4Qks+TVEb5u3bOp49avNbzsC1ZXvviyXeLVh8F+y7wO+A==" crossorigin="anonymous"></script>
+		<script type="text/javascript" src="js/privatebin.js?<?php echo rawurlencode($VERSION); ?>" integrity="sha512-UZZm187Nx4xNowbU87beUSxYDR4JhP1D5rBANRVb3l+YyqAq36TYB385ukuXU7kH6l/E6QaLL5I+ltcTsmVsdQ==" crossorigin="anonymous"></script>
 		<!--[if lt IE 10]>
 		<style type="text/css">body {padding-left:60px;padding-right:60px;} #ienotice {display:block;} #oldienotice {display:block;}</style>
 		<![endif]-->