Commit Graph

644 Commits

Author SHA1 Message Date
El RIDO
7ca49d1363 chore: update SRI hashes 2025-09-30 20:45:24 +02:00
El RIDO
f03f2bf28d simplify cache breaker extraction 2025-09-25 22:06:38 +02:00
El RIDO
0befe7e3cc update SRI hash 2025-09-24 12:38:50 +02:00
TW - Vincent
fd664dd577 Update Configuration.php 2025-09-21 19:02:49 +02:00
TW - Vincent
ba42cdbe62 Update Configuration.php 2025-09-21 18:34:06 +02:00
rugk
cfc687d62b style: fix indentation 2025-09-03 14:12:12 +00:00
rugk
879b696f22 wipfix: correct contatenation of options 2025-09-03 13:43:57 +00:00
rugk
2c1a17a07f Strengthen validation of URL in proxy services
This should definitively rule out any circumstances, where invalid URLs could cause problems.

Both URL validity is checked before it is forwarded to the URL shortener proxy _and_ the host part is explicitly compared to make sure the domain is really the same one.

TOOD:
* [ ] some tests may be needed here (hmpff…)
2025-09-02 22:40:22 +02:00
El RIDO
5cc963be1b deduplicate proxy view operations 2025-08-30 09:22:44 +02:00
Karthik Kasturi
77395c147f updated test cases, added clarity in error messages 2025-08-20 01:23:06 +00:00
Karthik Kasturi
0be1cef224 i18n updates 2025-08-19 21:39:16 +01:00
Karthik Kasturi
7ec8bc6ef1 chore: moved proxy classes to different folder and namespaces 2025-08-19 20:34:39 +01:00
Karthik Kasturi
4a39a2ad0f refactor: added AbstractProxy base class for shortener proxies 2025-08-15 23:28:44 +01:00
Karthik Kasturi
714e455479 style fixes 2025-08-15 00:20:11 +01:00
Karthik Kasturi
0808052acf Added shlink integration 2025-08-15 00:07:51 +01:00
Karthik Kasturi
94e0d718cf update SRI 2025-08-14 00:39:59 +01:00
Karthik Kasturi
059e64adb1 Auto Shortening URLs 2025-08-14 00:29:28 +01:00
Karthik Kasturi
065d9eaa23 Updated SRI and Changelog 2025-08-06 23:36:36 +05:30
El RIDO
f739b5b6a9 Merge pull request #1621 from jacquesbh/configuration-isnt-private
Use protected instead of private $_configuration
2025-08-01 07:09:30 +02:00
Jacques Bodin-Hullin
51d8e92e6a feat(configuration): Use protected instead of private
This way we can override the $_configuration property using
a new Configuration extending the PrivateBin one.
2025-07-31 23:59:58 +02:00
Nicolas Lepage
79dc03660b chore: updates SRI hash for privatebin.js 2025-07-31 16:19:42 +02:00
El RIDO
6003f52dba incrementing version 2025-07-28 09:34:48 +02:00
El RIDO
bde805d2f1 replaced the term "paste" with the more generic "document"
kudos @Ribas160
2025-07-25 08:16:08 +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
Ribas160
863cb89ad9 Switch from binary bytes to SI-units 2025-07-23 21:06:20 +03:00
El RIDO
a1ca7954d8 apply StyleCI recommendation 2025-07-22 10:56:17 +02:00
El RIDO
e50a809855 upgrade base-x to 5.0.1 2025-07-22 10:32:08 +02: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
734b85eb08 remove more v1 remnants
kudos @Ribas160
2025-07-21 12:28:40 +02:00
El RIDO
cdb8010f6d Merge branch 'master' into drop-legacy-zerobin-support 2025-07-21 11:42:47 +02:00
El RIDO
d353003086 address Scrutinizer reported issues 2025-07-19 21:47:18 +02:00
El RIDO
02b4eea56e address Scrutinizer reported issues 2025-07-19 21:34:33 +02:00
El RIDO
70842cf271 address Scrutinizer reported issues 2025-07-19 21:01:38 +02:00
El RIDO
c99e6895dd remove more v1 remnants
kudos @Ribas160
2025-07-19 20:09:37 +02:00
Ribas160
07ba4f179d Set bootstrap5 template as default 2025-07-19 13:24:37 +03:00
El RIDO
410cc909ce Merge branch 'master' into drop-legacy-zerobin-support 2025-07-17 08:00:09 +02:00
zertrin
330855f58d Added some more error logging for database and filesystem store backends
This is to address issue #1554
2025-07-16 15:50:41 +00:00
El RIDO
71587cddaf Merge branch 'master' into drop-legacy-zerobin-support 2025-07-16 06:10:08 +02:00
El RIDO
13869e46be updating jdenticon library to 2.0.0, minimum PHP version 7.4 2025-07-14 22:01:11 +02:00
El RIDO
3ba29ea29e Merge branch 'master' into jdenticons-default 2025-07-14 21:42:23 +02:00
El RIDO
c4e0abab02 Merge branch 'master' into drop-legacy-zerobin-support 2025-07-14 21:41:50 +02:00
TW - Vincent
778a7dec71 Mod_security2 BodyProcessor json compliance 2025-07-08 13:44:48 +02:00
El RIDO
a5ce92a0d1 remove dead code, found by Scrutinizer 2025-07-05 18:35:05 +02:00
El RIDO
b79ae4e929 remove more v1 legacy
- document removed unused columns in database schema of tables `paste` & `comment`
- amended misleading comments
- nickname is part of the encrypted payload in v2 comments and therefore there is nothing to store separately
2025-07-05 18:19:38 +02:00
El RIDO
e2859e9a35 apply StyleCI recommendation 2025-07-05 17:52:32 +02:00
El RIDO
8668e7b366 removed support for privatebin_data, privatebin_db & zerobin_db model class configurations
kudos @Ribas160 for suggesting this
2025-07-05 17:45:02 +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
07caf3ff64 switch to Jdenticons as the default icon generator 2025-07-05 11:30:16 +02:00