Commit graph

169 commits

Author SHA1 Message Date
El RIDO
8293d1fb5d
apply ESLint recommendation 2025-10-28 11:33:47 +01:00
El RIDO
ca70c7555d
Add tests of malicious file names 2025-10-24 15:00:56 +02:00
El RIDO
06496a1b0e
update bootstrap CSS library from 5.3.7 to 5.3.8 2025-10-09 09:24:08 +02:00
El RIDO
0d052d8ddb
improve readability 2025-10-08 18:08:39 +02:00
El RIDO
5ae2ebcc77
revert to regex to address issue discovered by CodeQL 2025-10-07 00:44:53 +02:00
El RIDO
e35894e4f8
address eslint errors 2025-10-07 00:31:11 +02:00
El RIDO
42b89a9300
address eslint errors 2025-10-07 00:29:16 +02:00
El RIDO
e7c2aa4d60
address eslint errors 2025-10-07 00:11:49 +02:00
El RIDO
f0560bcc27
address eslint errors 2025-10-06 23:47:08 +02:00
rugk
cdbeaeb076 style(js): fix auto-fixable problems in JS test files 2025-10-06 17:29:52 +00: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
Karthik Kasturi
24afa5a1d8 removed CSP tag from shortenerproxy.php 2025-09-11 18:17:30 +01: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
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
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
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
692e7af196 - window.confirm fallbacks for page template removed
- page template removed from configuration-test-generator
2025-07-03 13:13:42 +03:00
Ribas160
a2ca2ecb37 Use 1024 based file size units to follow consistency 2025-06-28 14:00:50 +03:00
Ribas160
d01c37c59d Show file name and size on download page 2025-06-26 18:12:22 +03:00
Ribas160
095a5be0b6 Allow multiple files 2025-06-02 14:35:54 +03:00
El RIDO
e68430e9c5
clarify comments 2025-02-28 21:38:30 +01:00
El RIDO
d0303dce9c
clarify comments 2025-02-28 21:36:51 +01:00
El RIDO
9f82eb64cb
clarify test descriptions 2025-02-28 21:25:40 +01:00
El RIDO
4e518b3fce
update jsdom dependency, fix tests 2025-02-27 08:16:30 +01:00
El RIDO
64b0e33574
update jsdom dependency, fix tests 2025-02-11 08:10:25 +01:00
El RIDO
e4d1f4a26d
update jsdom dependency, disable test 2025-02-11 07:52:23 +01:00
El RIDO
3b6b97429d
update jsdom dependency, fix tests 2025-02-07 08:54:55 +01:00
El RIDO
dc983621ac
update jsdom dependency, fix tests 2025-02-07 08:19:09 +01:00
El RIDO
ac63b91a1b
fix prompt test
rngState 883a6d2e518704c9fb fails on a single \n (line feed)

password inputs can't contain carriage returns *or* line feeds
2025-02-06 08:48:36 +01:00
El RIDO
db15ae8b43
fix prompt test
rngState 003ad8214ef0579cb6 fails on a single \n (line feed)

password inputs can't contain carriage returns *or* line feeds
2025-02-06 08:43:02 +01:00
El RIDO
740fd90db9
update jsdom & jsdom-global development dependency, fix cookie test 2025-02-06 08:39:25 +01:00
ribas160
48eb6ef87a Custom clipboard object added to the unit tests 2025-01-10 16:24:49 +02:00
Ribas160
6c651ea676 CopyToClipboard unit tests 2025-01-07 17:40:18 +02:00
El RIDO
4076a831eb
Merge branch 'master' into keyboard-trap 2025-01-05 07:23:41 +01:00
ribas160
7b57d7b289 - trash icon added to bootstrap-icons.svg
- made delete link a separate button
- unit tests updated
2025-01-04 22:53:32 +02:00
El RIDO
9028ddbb97
update all language files & SRI hashes
all tests pass, still need to replicate template changes and do manual testing to validate the UX
2024-11-24 12:49:21 +01:00
El RIDO
f9f8f18781
helper interacts with rawText call 2024-05-18 21:55:14 +02:00
El RIDO
5e5b394291 fix rawText test and split parts into hideAllButtons test 2024-05-18 20:02:54 +02:00
Ankiiisharma
bae6e6ff25 Added test case to verify rawText
Added test case to verify rawText manipulates button visibility correctly
2024-05-18 00:09:23 +05:30
El RIDO
81ad352c8c
improve TopNav.getExpiration test 2024-05-09 16:11:15 +02:00