瀏覽代碼

updating Base64 library to 2.4.5 (keeping old 1.7 library for legacy ZeroBin support)

El RIDO 8 年之前
父節點
當前提交
91baef389d
共有 7 個文件被更改,包括 5 次插入6 次删除
  1. 1 2
      CHANGELOG.md
  2. 0 0
      js/base64-2.1.9.js
  3. 0 0
      js/base64-2.4.5.js
  4. 1 1
      js/common.js
  5. 1 1
      js/test/CryptTool.js
  6. 1 1
      tpl/bootstrap.php
  7. 1 1
      tpl/page.php

+ 1 - 2
CHANGELOG.md

@@ -11,8 +11,7 @@
     * CHANGED: Shipped .htaccess files were updated for Apache 2.4 (#192)
     * CHANGED: Cleanup of bootstrap template variants and moved icons to `img` directory
     * CHANGED: Removed option to hide clone button on expiring pastes, since this requires reading the paste for rendering the template, which leaks information on the pastes state
-    * CHANGED: Upgrading SJCL library to 1.0.7
-    * CHANGED: Upgrading jQuery library to 3.3.1
+    * CHANGED: Upgrading libraries to: SJCL 1.0.7, jQuery 3.3.1 & Base64 2.4.5
     * CHANGED: Refactored JavaScript code, making it modular with private and public functions, making it much easier to maintain (#178)
     * FIXED: To counteract regressions introduced by the refactoring, we finally introduced property based unit testing for the JavaScript code, this caught several regressions, but also some very old bugs not found so far (#32)
   * **1.1.1 (2017-10-06)**

文件差異過大導致無法顯示
+ 0 - 0
js/base64-2.1.9.js


文件差異過大導致無法顯示
+ 0 - 0
js/base64-2.4.5.js


+ 1 - 1
js/common.js

@@ -10,7 +10,7 @@ global.fs = require('fs');
 // application libraries to test
 global.$ = global.jQuery = require('./jquery-3.3.1');
 global.sjcl = require('./sjcl-1.0.7');
-global.Base64 = require('./base64-2.1.9').Base64;
+global.Base64 = require('./base64-2.4.5').Base64;
 global.RawDeflate = require('./rawdeflate-0.5').RawDeflate;
 global.RawDeflate.inflate = require('./rawinflate-0.3').RawDeflate.inflate;
 require('./prettify');

+ 1 - 1
js/test/CryptTool.js

@@ -24,7 +24,7 @@ describe('CryptTool', function () {
         // The below static unit tests are included to ensure deciphering of "classic"
         // SJCL based pastes still works
         it(
-            'supports PrivateBin v1 ciphertext (SJCL & Base64 2.1.9)',
+            'supports PrivateBin v1 ciphertext (SJCL & Base64)',
             function () {
                 // Of course you can easily decipher the following texts, if you like.
                 // Bonus points for finding their sources and hidden meanings.

+ 1 - 1
tpl/bootstrap.php

@@ -55,7 +55,7 @@ if ($ZEROBINCOMPATIBILITY):
 <?php
 else:
 ?>
-		<script type="text/javascript" data-cfasync="false" src="js/base64-2.1.9.js" integrity="sha512-rbqAby7hObftbEoGQzkhUbEh5YkUn2MtekTLs4btvo2oly4CZ3DxhJzEh0u/rNzS54tcJdqi5Ug1ruugEd2U1g==" crossorigin="anonymous"></script>
+		<script type="text/javascript" data-cfasync="false" src="js/base64-2.4.5.js" integrity="sha512-YINE6agO8ZrYuzlrZZwQJTu0uqURJDxD4gjsfZ6mV4fP2gW5j8giNJ734iyJVTBrnF2XMiUBM/DSi7ON1V5RMQ==" crossorigin="anonymous"></script>
 <?php
 endif;
 ?>

+ 1 - 1
tpl/page.php

@@ -30,7 +30,7 @@ if ($ZEROBINCOMPATIBILITY):
 <?php
 else:
 ?>
-		<script type="text/javascript" data-cfasync="false" src="js/base64-2.1.9.js" integrity="sha512-rbqAby7hObftbEoGQzkhUbEh5YkUn2MtekTLs4btvo2oly4CZ3DxhJzEh0u/rNzS54tcJdqi5Ug1ruugEd2U1g==" crossorigin="anonymous"></script>
+		<script type="text/javascript" data-cfasync="false" src="js/base64-2.4.5.js" integrity="sha512-YINE6agO8ZrYuzlrZZwQJTu0uqURJDxD4gjsfZ6mV4fP2gW5j8giNJ734iyJVTBrnF2XMiUBM/DSi7ON1V5RMQ==" crossorigin="anonymous"></script>
 <?php
 endif;
 ?>

部分文件因文件數量過多而無法顯示