Commit graph

817 commits

Author SHA1 Message Date
rugk
c2c1f37885 fix: make EsLint run only for PrivateBin.js 2025-10-06 17:28:15 +00:00
rugk
1250c4009b style(js): fix auto-fixable problems in privatebin.js 2025-10-06 17:27:38 +00:00
rugk
bcbd116040 style: move EsLint into correct directory 2025-10-06 17:20:17 +00:00
rugk
dd17f1dcc3 Merge remote-tracking branch 'origin/js-unit-readability' into eslint 2025-10-06 17:09:04 +00:00
rugk
57e40e4fcc chore: add EsLint to dev dependencies 2025-10-06 17:02:29 +00:00
El RIDO
7f93242279
upgrade eslint config and remove workaround for implicit globals
we seem to have used eslint through codeclimate in the past, but that service seems no longer integrated, possibly due to no longer being free
2025-10-06 18:30:19 +02:00
El RIDO
ead315251f
suppress noise from early initialization during unit tests
the tests still all passed, but the missing browser globals in the node environment could cause misleading messages in the mocha output
2025-10-06 17:38:09 +02:00
El RIDO
d40dac4825
improve error reporting 2025-10-06 17:35:34 +02:00
El RIDO
b8037d869c
stick to a single code style 2025-10-06 15:50:26 +02:00
El RIDO
e853a934ea
improve JS unit test readability & error reporting 2025-10-06 14:52:08 +02:00
galindosarah
8c06cecf56
Added emailTemplateTest 2025-10-06 12:26:38 +02:00
rugk
a0c0d3d37b
Make sure legacy check returns true only on HTTPS (not like ftp or whatever)
I am not sure why it was expressed so convoluted before?

Found that in https://github.com/orgs/PrivateBin/discussions/1657
2025-09-30 14:21:17 +02:00
El RIDO
f03f2bf28d
simplify cache breaker extraction 2025-09-25 22:06:38 +02:00
TW - Vincent
9b496acde5
Update privatebin.js 2025-09-21 19:02:12 +02:00
TW - Vincent
b0df8e10f5
Update privatebin.js 2025-09-21 19:01:30 +02:00
TW - Vincent
1967c05a88
Update privatebin.js 2025-09-21 18:31:54 +02:00
Karthik Kasturi
24afa5a1d8 removed CSP tag from shortenerproxy.php 2025-09-11 18:17:30 +01:00
Karthik Kasturi
191ed63b04 fix regex check for short url in response 2025-09-10 16:02:06 +01:00
Karthik Kasturi
059e64adb1 Auto Shortening URLs 2025-08-14 00:29:28 +01:00
Karthik Kasturi
ce188671db
Update Copy Link url after short url is generated 2025-08-05 01:14:37 +05:30
Nicolas Lepage
13f5922397
fix: attach paste listener on message field
paste listener prevents default behavior in unexpected cases
such as pasting a password in the passworddecrypt field

attaching the paste listener on the message field
instead of the whole document should fix this problem
2025-07-31 16:14:13 +02:00
El RIDO
6003f52dba
incrementing version 2025-07-28 09:34:48 +02:00
El RIDO
ddd2d72064
replaced the term "paste" with the more generic "document"
Some of the references to "paste" in code or comments got changed as well, but to clarify the intended usage of the terms:

- A PrivateBin document can consist of a paste text (key "paste" in the encrypted payload) and one or several attachments and discussion entries.
- Internally the root document is called a "Paste" and each discussion entry is called a "Discussion".
- When referring to a whole document with one paste and optional discussion(s), we call it just "document".
- When talking about a particular JSON payload type in the internal logic, i.e. during storage or transmission, we call them a paste or discussion to distinguish which type we refer to.

closes #397
2025-07-24 10:46:31 +02:00
Ribas160
5d119768c3
JavaScript unit tests for new SI units added, privatebin.js SRI updated 2025-07-24 00:33:38 +03:00
Mikhail Romanov
390f8ddc53
The rest of SI units added
Co-authored-by: El RIDO <elrido@gmx.net>
2025-07-24 00:20:33 +03:00
Ribas160
863cb89ad9
Switch from binary bytes to SI-units 2025-07-23 21:06:20 +03:00
El RIDO
e82be3bd9d
Merge pull request #1600 from PrivateBin/bootstrap-5.3.7
Upgrade libraries: bootstrap 5.3.7, kjua 0.10.0 & base-x 5.0.1
2025-07-22 12:10:10 +02:00
El RIDO
47d7f5bc60
addressing false positive jsverify rngState 0dc9b3f5704ad26e18 2025-07-22 12:09:19 +02:00
El RIDO
e50a809855
upgrade base-x to 5.0.1 2025-07-22 10:32:08 +02:00
dependabot[bot]
a15f438654
Bump form-data from 4.0.1 to 4.0.4 in /js
Bumps [form-data](https://github.com/form-data/form-data) from 4.0.1 to 4.0.4.
- [Release notes](https://github.com/form-data/form-data/releases)
- [Changelog](https://github.com/form-data/form-data/blob/master/CHANGELOG.md)
- [Commits](https://github.com/form-data/form-data/compare/v4.0.1...v4.0.4)

---
updated-dependencies:
- dependency-name: form-data
  dependency-version: 4.0.4
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-07-22 08:19:04 +00:00
El RIDO
f3e2c53729
upgrade kjua to 0.10.0 2025-07-22 09:49:48 +02:00
El RIDO
f68650ce5f
upgrade bootstrap to 5.3.7 2025-07-22 09:45:15 +02:00
El RIDO
4daf0a2307
"0" is not a valid base58 encoding as leading zeros are trimmed, "1" is valid and decodes to 0x00 2025-07-21 12:29:11 +02:00
El RIDO
734b85eb08
remove more v1 remnants
kudos @Ribas160
2025-07-21 12:28:40 +02:00
El RIDO
c4e0abab02
Merge branch 'master' into drop-legacy-zerobin-support 2025-07-14 21:41:50 +02:00
TW - Vincent
ce025cf884
Mod_security2 BodyProcessor json compliance 2025-07-08 13:43:46 +02:00
El RIDO
f7cf389f36
remove v1 backend support and version checks in the frontend 2025-07-05 17:21:12 +02:00
El RIDO
6d5323e351
drop legacy paste format support
remove support for ZeroBin & v1 pastes and base64 & rawinflate libraries
2025-07-05 11:06:30 +02:00
Ribas160
38955754f3 Fixed hightlight file upload on bootstrap5 template 2025-07-04 18:18:00 +03:00
Ribas160
0ce8627561 Fixed adding attachments from clipboard 2025-07-04 18:15:28 +03:00
Ribas160
99cee27a6d Merge branch 'master' into remove_page_template
# Conflicts:
#	CHANGELOG.md
#	lib/Configuration.php
2025-07-03 13:14:52 +03:00
Ribas160
692e7af196 - window.confirm fallbacks for page template removed
- page template removed from configuration-test-generator
2025-07-03 13:13:42 +03:00
Ribas160
c4e381f523 Name mismatches in attached files fixed 2025-07-02 16:13:38 +03:00
El RIDO
d5cd6741c5
incrementing version 2025-06-30 10:56:53 +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
20e30b6637
incrementing version 2025-06-28 21:23:37 +02:00
El RIDO
389b215b2f
Merge pull request #1564 from Ribas160/file_name_and_size_on_download_page
Show file name and size on download page
2025-06-28 14:01:41 +02:00
Ribas160
a2ca2ecb37 Use 1024 based file size units to follow consistency 2025-06-28 14:00:50 +03:00
Mikhail Romanov
d15ac590d7
Use decodedData to get file size
Co-authored-by: El RIDO <elrido@gmx.net>
2025-06-28 13:47:43 +03:00