Commit Graph

4182 Commits

Author SHA1 Message Date
rugk 64165d9928 chore: always ignore composer PHP bin dir 2025-09-03 12:38:13 +00:00
rugk bdfe74c077 chore: fix Codespace COmposer/PHPUnit PATH 2025-09-03 12:37:55 +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 a72545c994 Merge pull request #1636 from PrivateBin/crowdin-translation
New Crowdin updates
2025-08-30 19:23:03 +02:00
PrivateBin Translator Bot e31027d71e New translations en.json (Corsican) 2025-08-30 17:54:07 +02:00
El RIDO 5cc963be1b deduplicate proxy view operations 2025-08-30 09:22:44 +02:00
El RIDO 5cc66bb29b Merge pull request #1629 from karthikkasturi/shlink
Added shlink integration
2025-08-30 09:19:41 +02:00
El RIDO a97af156a0 Merge pull request #1633 from PrivateBin/crowdin-translation
New Crowdin updates
2025-08-21 18:13:10 +02:00
PrivateBin Translator Bot 374f937418 New translations en.json (Czech) 2025-08-21 16:56:25 +02:00
PrivateBin Translator Bot 53cf3063b9 New translations en.json (Czech) 2025-08-21 15:18:24 +02:00
Karthik Kasturi 77395c147f updated test cases, added clarity in error messages 2025-08-20 01:23:06 +00:00
Karthik Kasturi 39e527915e Add test cases for shlink 2025-08-19 23:55:32 +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
El RIDO c317dc423b Merge pull request #1631 from PrivateBin/crowdin-translation
New Crowdin updates
2025-08-18 21:42:18 +02:00
PrivateBin Translator Bot 7380b3d5d4 New translations en.json (Corsican) 2025-08-18 19:21:45 +02: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
El RIDO ebe275d509 Merge pull request #1627 from karthikkasturi/auto-shorten-urls
Auto shorten urls
2025-08-14 07:56:35 +02:00
Karthik Kasturi 0460f18ca0 chore: added new translation 2025-08-14 01:21:49 +01:00
Karthik Kasturi eab8b3b7c9 Updated changelog 2025-08-14 00:48:36 +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
El RIDO 08c44cfb05 Merge pull request #1626 from PrivateBin/dependabot/github_actions/actions/checkout-5
Bump actions/checkout from 4 to 5
2025-08-13 07:12:42 +02:00
dependabot[bot] 09bab8744f Bump actions/checkout from 4 to 5
Bumps [actions/checkout](https://github.com/actions/checkout) from 4 to 5.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v4...v5)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '5'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-08-12 17:11:00 +00:00
El RIDO 50b8c1de50 Merge pull request #1625 from karthikkasturi/copy-short-link
Update Copy Link url after short url is generated
2025-08-09 15:01:05 +02:00
El RIDO 8eac99c2ec Merge pull request #1623 from karthikkasturi/master
Update scripts to defer
2025-08-09 14:58:52 +02:00
Karthik Kasturi 397d006479 Updated bootstrap.php to include scripts as defer 2025-08-08 12:44:53 +05:30
Karthik Kasturi 065d9eaa23 Updated SRI and Changelog 2025-08-06 23:36:36 +05:30
Karthik Kasturi ce188671db Update Copy Link url after short url is generated 2025-08-05 01:14:37 +05:30
Karthik Kasturi 4f8fc4873a Update scripts to defer 2025-08-04 03:09:04 +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
El RIDO 35319c1622 Merge pull request #1620 from 1024pix/fix/paste-password-in-passworddecrypt
fix: allow pasting a password for decrypting a paste
2025-08-01 06:54:19 +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 8e3f59a49c chroe: adds bugfix in CHANGELOG.md 2025-07-31 16:31:37 +02:00
Nicolas Lepage 79dc03660b chore: updates SRI hash for privatebin.js 2025-07-31 16:19:42 +02:00
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 7435097731 Merge pull request #1618 from AnonymousWP/chore(translation)-update-Dutch-translation
chore(translation): fix incorrect Dutch wording for `document`
2025-07-29 17:11:47 +02:00
Anonymoussaurus b77544a6b1 chore(translation): fix incorrect Dutch wording for document
* 'de' -> 'het'
* 'deze' -> 'dit'
* 'notitie' -> 'document'
* 'documents' -> 'documenten'
2025-07-29 11:40:26 +02:00
El RIDO 99265e5464 avoid undefined variable warning 2025-07-29 07:49:56 +02:00
El RIDO f495aa2cfc Merge pull request #1617 from PrivateBin/crowdin-translation
New Crowdin updates
2025-07-28 17:49:43 +02:00
PrivateBin Translator Bot f7063f6b1d New translations en.json (Corsican) 2025-07-28 17:20:39 +02:00
El RIDO 22e53324bb Merge pull request #1613 from PrivateBin/csp-2.0
update CSP recommendation around bootstrap5 template
2025-07-28 16:28:42 +02:00
El RIDO 193a69d0b6 Merge pull request #1616 from PrivateBin/crowdin-translation
New Crowdin updates
2025-07-28 16:27:53 +02:00
PrivateBin Translator Bot ba2799fc89 New translations en.json (Corsican) 2025-07-28 16:21:22 +02:00
El RIDO 1378fb7356 update CSP recommendation around bootstrap5 template
resolved in Firefox 131, see https://bugzilla.mozilla.org/show_bug.cgi?id=1773976

kudos @Ribas160 for finding this
2025-07-28 16:04:19 +02:00
El RIDO 4fd63176ad belt & braces
occasionally paste without meta attribute are encountered (while they are written), leading to:

PHP Warning:  Trying to access array offset on false in /srv/bin/administration on line 287
PHP Fatal error:  Uncaught TypeError: array_key_exists(): Argument #2 ($array) must be of type array, null given in /srv/bin/administration:287
Stack trace:
#0 /srv/bin/administration(287): array_key_exists()
#1 /srv/bin/administration(398): PrivateBin\Administration->_statistics()
#2 /srv/bin/administration(403): PrivateBin\Administration->__construct()
#3 {main}
  thrown in /srv/bin/administration on line 287
2025-07-28 15:39:33 +02:00
El RIDO 144002e3a2 Merge branch 'master' into crowdin-translation 2025-07-28 15:12:18 +02:00
PrivateBin Translator Bot f5187b4fbe New translations en.json (Corsican) 2025-07-28 14:19:59 +02:00