Commit Graph

62 Commits

Author SHA1 Message Date
El RIDO
3a23117ebf Refactored translation of exception messages 2025-11-19 09:36:40 +01:00
El RIDO
3e6f1733f9 refactored exceptions in controller
- added missing exception doc blocks
- introduced exception type that translates message during construction
- catch explicit exception types where possible
2025-11-19 09:36:39 +01:00
El RIDO
6054e99849 ensure PHP opcache gets invalidated, when storing data in file parsed via PHP require 2025-10-12 11:39:58 +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
El RIDO
cebc9acce6 enable strict types in PHP 2024-06-04 07:13:55 +02:00
El RIDO
05402ef304 remove version from doc blocs
- @version in file header level isn't used on code docs, it is intended
  for API versions at class or method level
- avoids needing to update all these files on version increment
- avoids needing to regenerate SRI hashes for privatebin.js through
  extra phpunit run
- simplifies VERSION_FILES list
- avoids having to filter above list during loop
- adds a few missing doc bloc headers
2024-05-28 21:03:22 +02:00
El RIDO
22419cd68a incrementing version 2024-05-13 19:18:30 +02:00
El RIDO
5067e9222c incrementing version 2024-05-05 20:43:33 +02:00
El RIDO
aad975a721 incrementing version 2024-02-11 15:31:11 +01:00
El RIDO
a3ee624d3a incrementing version 2024-02-11 14:17:27 +01:00
El RIDO
d0420fb418 1.6.2 release 2023-12-15 07:20:20 +01:00
El RIDO
3bd570bd6a incrementing version 2023-12-04 21:07:17 +01:00
El RIDO
f56907bd38 increment version 2023-09-11 19:36:45 +02:00
El RIDO
01afe7d481 incrementing version 2023-07-09 08:44:22 +02:00
El RIDO
e84a8694e4 incrementing version 2022-12-24 05:52:07 +01:00
El RIDO
b5602dd1ae incrementing version 2022-12-11 05:02:15 +01:00
El RIDO
456ced37c2 incrementing version 2022-04-05 07:30:51 +02:00
El RIDO
3e02818335 actually support the short CIDR notation 2022-02-28 16:24:06 +01:00
El RIDO
fe89161848 replace deprecated function calls 2022-02-26 07:18:59 +01:00
El RIDO
f987e96d4b apply StyleCI recommendation 2022-02-20 12:25:55 +01:00
El RIDO
1034d4038e unify IP-related logic into traffic limiter 2022-02-20 11:25:19 +01:00
El RIDO
190a35a53b small unit test refactoring, comment wording 2022-02-20 09:30:41 +01:00
El RIDO
91041d8c59 simplify/unify naming & wording of the two types of IP lists for the traffic limiter 2022-02-20 09:09:20 +01:00
El RIDO
fd08d991fe log errors storing persistance 2021-06-16 05:32:45 +02:00
El RIDO
e294145a2b ip-lib doesn't except on the matches interfaces 2021-06-13 08:26:05 +02:00
El RIDO
7b2f0ff302 apply StyleCI recommendation 2021-06-09 19:16:22 +02:00
El RIDO
7901ec74a7 folding Persistance\ServerSalt into Data\Filesystem 2021-06-08 22:01:29 +02:00
El RIDO
b5a6ce323e folding Persistance\TrafficLimiter into Data\Filesystem 2021-06-08 07:49:22 +02:00
El RIDO
3429d293d3 remove configurable dir for traffic & purge limiters 2021-06-08 06:37:27 +02:00
El RIDO
7de12d64d5 be more precise 2021-05-22 11:35:53 +02:00
El RIDO
b6460616ba address Scrutinizer issues 2021-05-22 11:30:17 +02:00
El RIDO
91c8f9f23c use namespaces 2021-05-22 11:02:54 +02:00
El RIDO
3dd01b1f70 testing IP exemption, handle corner cases found in testing 2021-05-22 10:59:47 +02:00
rodehoed
af5a14afc3 Optimized the canPass() functions 2021-05-19 09:01:45 +02:00
rodehoed
5812a6bb68 Optimized the canPass() functions 2021-05-19 08:47:35 +02:00
Rodehoed
502bb5fa15 Put the ip-matching function in a private function 2021-05-06 12:18:44 +02:00
Rodehoed
89bdc92451 Put the ip-matching function in a private function 2021-05-06 12:13:03 +02:00
rodehoed
4296b43832 QA 2021-05-04 11:19:34 +02:00
rodehoed
c3ad4a4b4d QA 2021-05-04 11:18:06 +02:00
rodehoed
805eb288d9 QA 2021-05-04 11:14:11 +02:00
rodehoed
b21efd8336 Code quality 2021-05-04 11:01:46 +02:00
LinQhost Managed hosting
7d82c82fd9 Make it possible to exempt ips from the rate-limiter 2021-05-04 10:29:25 +02:00
El RIDO
458ebcb321 incrementing version 2021-04-05 17:05:14 +02:00
El RIDO
9914c37683 incrementing version 2020-03-22 06:44:04 +01:00
El RIDO
adece1d784 incrementing version 2020-02-16 11:15:51 +01:00
El RIDO
ed590ee557 incrementing version 2020-01-08 19:31:06 +01:00
El RIDO
2d4edfe401 incrementing version number in preparation of release 2019-09-22 19:42:04 +02:00
El RIDO
07018e5876 incrementing version number in preparation of release 2019-07-08 18:35:34 +02:00
El RIDO
9ce41022cf correcting namespaces 2018-11-19 13:09:34 +01:00
El RIDO
b5ebc4a3d7 incrementing version 2018-08-11 19:29:58 +02:00