Compare commits

...

9 Commits
1.7.7 ... 1.7.8

Author SHA1 Message Date
El RIDO
d5cd6741c5 incrementing version 2025-06-30 10:56:53 +02:00
El RIDO
1842d356e5 Merge pull request #1579 from Ribas160/page_template_scripts_load_order
Page template scripts loading order fix
2025-06-30 09:57:56 +02:00
Ribas160
207b5ccc5f Page template scripts loading order fix 2025-06-30 09:46:05 +03:00
El RIDO
ce2942a370 Merge pull request #1577 from Ribas160/attachment_bugs_fixes
Attachment bugs fixes
2025-06-30 07:03:17 +02:00
Ribas160
fa662547fe Attachments with empty file name fix 2025-06-29 21:30:11 +03:00
Ribas160
fcce915a5f Duplicate attachment for every comment fix 2025-06-29 21:27:11 +03:00
El RIDO
f282043b9e Merge pull request #1573 from PrivateBin/crowdin-translation
New Crowdin updates
2025-06-29 20:24:22 +02:00
PrivateBin Translator Bot
3d1b6d2666 New translations en.json (Corsican) 2025-06-29 12:45:45 +02:00
El RIDO
78dd0e2d8e chore: prepare for next release 2025-06-28 22:50:16 +02:00
12 changed files with 33 additions and 22 deletions

View File

@@ -1,5 +1,10 @@
# PrivateBin version history
## 1.7.8 (2025-06-30)
* FIXED: Duplicate attachment for every comment (#1577)
* FIXED: Attachments with empty file names (#1577)
* FIXED: Page template scripts loading order (#1579)
## 1.7.7 (2025-06-28)
* ADDED: Switching templates using the web ui (#1501)
* ADDED: Show file name and size on download page (#603)

View File

@@ -1,7 +1,7 @@
.PHONY: all coverage coverage-js coverage-php doc doc-js doc-php increment sign test test-js test-php help
CURRENT_VERSION = 1.7.7
VERSION ?= 1.7.8
CURRENT_VERSION = 1.7.8
VERSION ?= 2.0.0
VERSION_FILES = README.md SECURITY.md doc/Installation.md js/package*.json lib/Controller.php Makefile
REGEX_CURRENT_VERSION := $(shell echo $(CURRENT_VERSION) | sed "s/\./\\\./g")
REGEX_VERSION := $(shell echo $(VERSION) | sed "s/\./\\\./g")

View File

@@ -1,6 +1,6 @@
# [![PrivateBin](https://cdn.rawgit.com/PrivateBin/assets/master/images/preview/logoSmall.png)](https://privatebin.info/)
*Current version: 1.7.7*
*Current version: 1.7.8*
**PrivateBin** is a minimalist, open source online
[pastebin](https://en.wikipedia.org/wiki/Pastebin)

View File

@@ -4,8 +4,8 @@
| Version | Supported |
| ------- | ------------------ |
| 1.7.7 | :heavy_check_mark: |
| < 1.7.7 | :x: |
| 1.7.8 | :heavy_check_mark: |
| < 1.7.8 | :x: |
## Reporting a Vulnerability

View File

@@ -200,7 +200,7 @@ CREATE INDEX parent ON prefix_comment(pasteid);
CREATE TABLE prefix_config (
id CHAR(16) NOT NULL, value TEXT, PRIMARY KEY (id)
);
INSERT INTO prefix_config VALUES('VERSION', '1.7.7');
INSERT INTO prefix_config VALUES('VERSION', '1.7.8');
```
In **PostgreSQL**, the `data`, `attachment`, `nickname` and `vizhash` columns

View File

@@ -156,15 +156,15 @@
"Could not create paste: %s": "Ùn si pò micca creà lappiccicu : %s",
"Cannot decrypt paste: Decryption key missing in URL (Did you use a redirector or an URL shortener which strips part of the URL?)": "Ùn si pò micca dicifrà lappiccicu : A chjave di dicifratura hè assente in lindirizzu. Averiate impiegatu un orientadore dindirizzu o un riduttore chì ammuzzeghja una parte di lindirizzu ?",
"B": "o",
"KiB": "Ko",
"MiB": "Mo",
"GiB": "Go",
"TiB": "To",
"PiB": "Po",
"EiB": "Eo",
"ZiB": "Zo",
"YiB": "Yo",
"kB": "ko",
"KiB": "Kio",
"MiB": "Mio",
"GiB": "Gio",
"TiB": "Tio",
"PiB": "Pio",
"EiB": "Eio",
"ZiB": "Zio",
"YiB": "Yio",
"kB": "Ko",
"MB": "Mo",
"GB": "Go",
"TB": "To",

4
js/package-lock.json generated
View File

@@ -1,12 +1,12 @@
{
"name": "privatebin",
"version": "1.7.7",
"version": "1.7.8",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "privatebin",
"version": "1.7.7",
"version": "1.7.8",
"license": "zlib-acknowledgement",
"devDependencies": {
"@peculiar/webcrypto": "^1.5.0",

View File

@@ -1,6 +1,6 @@
{
"name": "privatebin",
"version": "1.7.7",
"version": "1.7.8",
"description": "PrivateBin is a minimalist, open source online pastebin where the server has zero knowledge of pasted data. Data is encrypted/decrypted in the browser using 256 bit AES in Galois Counter mode (GCM).",
"main": "privatebin.js",
"directories": {

View File

@@ -3265,6 +3265,9 @@ jQuery.PrivateBin = (function($, RawDeflate) {
* @see {@link https://developer.mozilla.org/en-US/docs/Web/API/FileReader#readAsDataURL()}
*/
function readFileData(loadedFiles) {
// Clear old cache
me.removeAttachmentData();
if (typeof FileReader === 'undefined') {
// revert loading status…
me.hideAttachment();
@@ -5521,6 +5524,9 @@ jQuery.PrivateBin = (function($, RawDeflate) {
me.run(paste);
});
// Clear attachments to prevent duplicates
AttachmentViewer.removeAttachment();
// decrypt paste & attachments
decryptionPromises.push(decryptPaste(paste, key, password));

View File

@@ -119,7 +119,7 @@ class Configuration
'js/kjua-0.9.0.js' => 'sha512-CVn7af+vTMBd9RjoS4QM5fpLFEOtBCoB0zPtaqIDC7sF4F8qgUSRFQQpIyEDGsr6yrjbuOLzdf20tkHHmpaqwQ==',
'js/legacy.js' => 'sha512-UxW/TOZKon83n6dk/09GsYKIyeO5LeBHokxyIq+r7KFS5KMBeIB/EM7NrkVYIezwZBaovnyNtY2d9tKFicRlXg==',
'js/prettify.js' => 'sha512-puO0Ogy++IoA2Pb9IjSxV1n4+kQkKXYAEUtVzfZpQepyDPyXk8hokiYDS7ybMogYlyyEIwMLpZqVhCkARQWLMg==',
'js/privatebin.js' => 'sha512-zvJ6Feu2NvROB236BBxbP+8eYbUTJ5GCfhOJVL/RI6pJQpR3AS4ps0d1cVDqgUFW8wY0tiwE7JTE13gPWO3lHA==',
'js/privatebin.js' => 'sha512-i0l0rh+NCY8Oeg9SxzQREHin6egXJ6sdIC84RTEsBpBNhYGObv8QEdRng1dMERZmw4olVeXx2ZCkusTyT1G+SA==',
'js/purify-3.2.6.js' => 'sha512-zqwL4OoBLFx89QPewkz4Lz5CSA2ktU+f31fuECkF0iK3Id5qd3Zpq5dMby8KwHjIEpsUgOqwF58cnmcaNem0EA==',
'js/rawinflate-0.3.js' => 'sha512-g8uelGgJW9A/Z1tB6Izxab++oj5kdD7B4qC7DHwZkB6DGMXKyzx7v5mvap2HXueI2IIn08YlRYM56jwWdm2ucQ==',
'js/showdown-2.1.0.js' => 'sha512-WYXZgkTR0u/Y9SVIA4nTTOih0kXMEd8RRV6MLFdL6YU8ymhR528NLlYQt1nlJQbYz4EW+ZsS0fx1awhiQJme1Q==',

View File

@@ -27,7 +27,7 @@ class Controller
*
* @const string
*/
const VERSION = '1.7.7';
const VERSION = '1.7.8';
/**
* minimal required PHP version

View File

@@ -35,8 +35,8 @@ if ($ZEROBINCOMPATIBILITY):
endif;
?>
<?php $this->_scriptTag('js/zlib-1.3.1-1.js', 'async'); ?>
<?php $this->_scriptTag('js/base-x-4.0.0.js', 'async'); ?>
<?php $this->_scriptTag('js/rawinflate-0.3.js', 'async'); ?>
<?php $this->_scriptTag('js/base-x-4.0.0.js', 'defer'); ?>
<?php $this->_scriptTag('js/rawinflate-0.3.js', 'defer'); ?>
<?php
if ($SYNTAXHIGHLIGHTING):
?>