Răsfoiți Sursa

Merge branch 'master' into paste-manager

El RIDO 6 ani în urmă
părinte
comite
ddfccb338c
9 a modificat fișierele cu 23 adăugiri și 21 ștergeri
  1. 1 0
      CHANGELOG.md
  2. 1 1
      i18n/de.json
  3. 15 15
      i18n/ru.json
  4. 2 2
      i18n/zh.json
  5. 1 1
      js/common.js
  6. 1 0
      js/purify-2.0.14.js
  7. 0 0
      js/purify-2.0.8.js
  8. 1 1
      tpl/bootstrap.php
  9. 1 1
      tpl/page.php

+ 1 - 0
CHANGELOG.md

@@ -1,6 +1,7 @@
 # PrivateBin version history
 
   * **1.4 (not yet released)**
+    * CHANGED: Upgrading libraries to: DOMpurify 2.0.14
   * **1.3.4 (2020-03-22)**
     * CHANGED: Minimum required PHP version is 5.6, due to a change in the identicon library and to use php's native hash_equals()
     * CHANGED: Upgrading libraries to: identicon 2.0.0

+ 1 - 1
i18n/de.json

@@ -65,7 +65,7 @@
     "Never":
         "Nie",
     "Note: This is a test service: Data may be deleted anytime. Kittens will die if you abuse this service.":
-        "Hinweis: Dies ist ein Versuchsdienst. Daten können jederzeit gelöscht werden. Kätzchen werden sterben wenn du diesen Dienst missbrauchst.",
+        "Hinweis: Dies ist ein Versuchsdienst. Daten können jederzeit gelöscht werden. Kätzchen werden sterben, wenn du diesen Dienst missbrauchst.",
     "This document will expire in %d seconds.":
         ["Dieses Dokument läuft in einer Sekunde ab.", "Dieses Dokument läuft in %d Sekunden ab."],
     "This document will expire in %d minutes.":

+ 15 - 15
i18n/ru.json

@@ -170,33 +170,33 @@
     "Your browser may require an HTTPS connection to support the WebCrypto API. Try <a href=\"%s\">switching to HTTPS</a>.":
         "Ваш браузер требует использования HTTPS подключения для поддержки WebCrypto API. Попробуйте <a href=\"%s\">переключиться на HTTPS</a>.",
     "Your browser doesn't support WebAssembly, used for zlib compression. You can create uncompressed documents, but can't read compressed ones.":
-        "Your browser doesn't support WebAssembly, used for zlib compression. You can create uncompressed documents, but can't read compressed ones.",
+        "Ваш браузер не поддерживает WebAssembly используемый для сжатия с помощью zlib. Вы можете создавать новые записи без сжатия, но не сможете открыть записи с сжатием.",
     "waiting on user to provide a password":
-        "waiting on user to provide a password",
+        "ожидаем ввода пароля пользователем",
     "Could not decrypt data. Did you enter a wrong password? Retry with the button at the top.":
-        "Could not decrypt data. Did you enter a wrong password? Retry with the button at the top.",
+        "Не удалось расшифровать данные. Может быть вы ввели не верный пароль? Попробуйте снова с помощью кнопки вверху.",
     "Retry":
-        "Retry",
+        "Повторить",
     "Showing raw text…":
-        "Showing raw text…",
+        "Показываем исходный текст…",
     "Notice:":
-        "Notice:",
+        "Уведомление:",
     "This link will expire after %s.":
-        "This link will expire after %s.",
+        "Срок жизни ссылки истечет через %s.",
     "This link can only be accessed once, do not use back or refresh button in your browser.":
-        "This link can only be accessed once, do not use back or refresh button in your browser.",
+        "Данная ссылка доступна только один раз, не нажимайте кнопку назад или обновления страницы в вашем браузере.",
     "Link:":
-        "Link:",
+        "Ссылка:",
     "Recipient may become aware of your timezone, convert time to UTC?":
-        "Recipient may become aware of your timezone, convert time to UTC?",
+        "Получатель узнает ваш часовой пояс, сконвертировать время в UTC?",
     "Use Current Timezone":
-        "Use Current Timezone",
+        "Использовать текущий часовой пояс",
     "Convert To UTC":
-        "Convert To UTC",
+        "Конвертировать в UTC",
     "Close":
-        "Close",
+        "Закрыть",
     "Encrypted note on PrivateBin":
-        "Encrypted note on PrivateBin",
+        "Зашифрованная запиь на PrivateBin",
     "Visit this link to see the note. Giving the URL to anyone allows them to access the note, too.":
-        "Visit this link to see the note. Giving the URL to anyone allows them to access the note, too."
+        "Посетите эту ссылку чтобы просмотреть запись. Передача ссылки кому либо позволит им получить доступ к записи тоже."
 }

+ 2 - 2
i18n/zh.json

@@ -186,7 +186,7 @@
     "Close":
         "关闭",
     "Encrypted note on PrivateBin":
-        "Encrypted note on PrivateBin",
+        "PrivateBin上的加密笔记",
     "Visit this link to see the note. Giving the URL to anyone allows them to access the note, too.":
-        "Visit this link to see the note. Giving the URL to anyone allows them to access the note, too."
+        "访问这个链接来查看该笔记。 将这个URL发送给任何人即可允许其访问该笔记。"
 }

+ 1 - 1
js/common.js

@@ -19,7 +19,7 @@ require('./prettify');
 global.prettyPrint = window.PR.prettyPrint;
 global.prettyPrintOne = window.PR.prettyPrintOne;
 global.showdown = require('./showdown-1.9.1');
-global.DOMPurify = require('./purify-2.0.8');
+global.DOMPurify = require('./purify-2.0.14');
 global.baseX = require('./base-x-3.0.7').baseX;
 global.Legacy = require('./legacy').Legacy;
 require('./bootstrap-3.3.7');

Fișier diff suprimat deoarece este prea mare
+ 1 - 0
js/purify-2.0.14.js


Fișier diff suprimat deoarece este prea mare
+ 0 - 0
js/purify-2.0.8.js


+ 1 - 1
tpl/bootstrap.php

@@ -70,7 +70,7 @@ if ($MARKDOWN):
 <?php
 endif;
 ?>
-		<script type="text/javascript" data-cfasync="false" src="js/purify-2.0.8.js" integrity="sha512-QwcEKGuEmKtMguCO9pqNtUtZqq9b/tJ8gNr5qhY8hykq3zKTlDOvpZAmf6Rs8yH35Bz1ZdctUjj2qEWxT5aXCg==" crossorigin="anonymous"></script>
+		<script type="text/javascript" data-cfasync="false" src="js/purify-2.0.14.js" integrity="sha512-kbLhjIj/m/AW++o2eErCfqPueoX2btJo7VznhEC2YQRbVR/+Eup3w7thwDZwoCZ/gLrPxTX3W4H2KzupLg2PKA==" crossorigin="anonymous"></script>
 		<script type="text/javascript" data-cfasync="false" src="js/legacy.js?<?php echo rawurlencode($VERSION); ?>" integrity="sha512-LYos+qXHIRqFf5ZPNphvtTB0cgzHUizu2wwcOwcwz/VIpRv9lpcBgPYz4uq6jx0INwCAj6Fbnl5HoKiLufS2jg==" crossorigin="anonymous"></script>
 		<script type="text/javascript" data-cfasync="false" src="js/privatebin.js?<?php echo rawurlencode($VERSION); ?>" integrity="sha512-nQ7uXojx+snSWAOLTI/kLNlNUL7w14Dm7Uy3hsgF5KQDUFjBb0Sbppg6RbsbjBtTvUnpkiNkK8YOFBTIPpxXZg==" crossorigin="anonymous"></script>
 		<!-- icon -->

+ 1 - 1
tpl/page.php

@@ -48,7 +48,7 @@ if ($MARKDOWN):
 <?php
 endif;
 ?>
-		<script type="text/javascript" data-cfasync="false" src="js/purify-2.0.8.js" integrity="sha512-QwcEKGuEmKtMguCO9pqNtUtZqq9b/tJ8gNr5qhY8hykq3zKTlDOvpZAmf6Rs8yH35Bz1ZdctUjj2qEWxT5aXCg==" crossorigin="anonymous"></script>
+		<script type="text/javascript" data-cfasync="false" src="js/purify-2.0.14.js" integrity="sha512-kbLhjIj/m/AW++o2eErCfqPueoX2btJo7VznhEC2YQRbVR/+Eup3w7thwDZwoCZ/gLrPxTX3W4H2KzupLg2PKA==" crossorigin="anonymous"></script>
 		<script type="text/javascript" data-cfasync="false" src="js/legacy.js?<?php echo rawurlencode($VERSION); ?>" integrity="sha512-LYos+qXHIRqFf5ZPNphvtTB0cgzHUizu2wwcOwcwz/VIpRv9lpcBgPYz4uq6jx0INwCAj6Fbnl5HoKiLufS2jg==" crossorigin="anonymous"></script>
 		<script type="text/javascript" data-cfasync="false" src="js/privatebin.js?<?php echo rawurlencode($VERSION); ?>" integrity="sha512-nQ7uXojx+snSWAOLTI/kLNlNUL7w14Dm7Uy3hsgF5KQDUFjBb0Sbppg6RbsbjBtTvUnpkiNkK8YOFBTIPpxXZg==" crossorigin="anonymous"></script>
 		<!-- icon -->

Unele fișiere nu au fost afișate deoarece prea multe fișiere au fost modificate în acest diff