Commit Graph

4554 Commits

Author SHA1 Message Date
El RIDO 0ed48c455f address unneeded defensive code lint
IMHO this check is actually necessary, as we do call the function with an empty argument. So we need a guard there, but we could simplify it a bit, by making the argument an empty array by default. I still kept the check for undefined (line 3249, first check) in case the caller passes us an undefined variable.

See: https://github.com/PrivateBin/PrivateBin/security/quality/rules/js%2Funneeded-defensive-code - Copilot suggested to simply remove the if-condition and its else block, which I think is wrong.
2026-01-25 09:26:14 +01:00
Cloudscape Germany 968ec9cada Fix JSDoc type for badBotUA variable
Update JSDoc type annotation for badBotUA variable
2026-01-24 12:55:59 +01:00
Cloudscape Germany 15643689fd Add exhaustive list of bot identifiers to badBotUA array
- Minimizes false positives by using specific patterns like 'bot/', '-bot'
- Catches most bot variants without being overly broad
- Maintains case-sensitivity for precision
- Includes both common patterns and specific known bots
2026-01-24 12:40:44 +01:00
El RIDO 7806faf16c Merge pull request #1756 from WoutResseler/master
Update hash for privatebin.js
2026-01-22 06:59:06 +01:00
rugk 8b37926486 Merge pull request #1754 from PrivateBin/ai-llm-disclosure
docs: require users to disclose in PR whether an AI/LLM tool is used
2026-01-20 16:32:18 +01:00
woutresseler 33c93f4d40 Update hash for privatebin.js 2026-01-20 13:18:57 +01:00
El RIDO 9f0270634c Merge pull request #1755 from PrivateBin/docs/robots-txt
docs: clarify that robots.txt is not fail-safe
2026-01-18 12:33:03 +01:00
rugk c2ed57c13f docs: clarify that robots.txt is not fail-safe
As per https://github.com/orgs/PrivateBin/discussions/1747
2026-01-17 14:22:27 +01:00
rugk df4560802b docs: add AI "trap" 2026-01-17 14:14:42 +01:00
rugk b722030b4a docs: require users to disclose in PR whether an A/LLM tool is used
Add disclosure section for AI tool usage in PRs.
2026-01-16 17:52:07 +01:00
El RIDO b0830439e3 Merge pull request #1746 from PrivateBin/crowdin-translation
New Crowdin updates
2026-01-06 06:42:09 +01:00
PrivateBin Translator Bot c6bf32391d New translations en.json (Slovenian) 2026-01-06 02:37:02 +01:00
PrivateBin Translator Bot 2f0834c209 New translations en.json (Slovenian) 2026-01-06 01:31:52 +01:00
El RIDO 49135506d2 Merge pull request #1745 from PrivateBin/dependabot/github_actions/dawidd6/action-download-artifact-12
Bump dawidd6/action-download-artifact from 11 to 12
2025-12-25 14:06:20 +01:00
dependabot[bot] db422cfe6a Bump dawidd6/action-download-artifact from 11 to 12
Bumps [dawidd6/action-download-artifact](https://github.com/dawidd6/action-download-artifact) from 11 to 12.
- [Release notes](https://github.com/dawidd6/action-download-artifact/releases)
- [Commits](https://github.com/dawidd6/action-download-artifact/compare/ac66b43f0e6a346234dd65d4d0c8fbb31cb316e5...0bd50d53a6d7fb5cb921e607957e9cc12b4ce392)

---
updated-dependencies:
- dependency-name: dawidd6/action-download-artifact
  dependency-version: '12'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-12-25 11:03:31 +00:00
El RIDO 02046cffdf Merge pull request #1741 from PrivateBin/wrong_formatter_value_for_cloned_document
The content format is not reset when creating a new document
2025-12-17 19:37:19 +01:00
El RIDO 482a7835ea Merge pull request #1743 from PrivateBin/dependabot/github_actions/actions/upload-artifact-6
Bump actions/upload-artifact from 5 to 6
2025-12-16 06:49:49 +01:00
dependabot[bot] 10b4a6ba4b Bump actions/upload-artifact from 5 to 6
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 5 to 6.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/v5...v6)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-12-15 11:04:11 +00:00
El RIDO 87428d377c Merge pull request #1740 from PrivateBin/crowdin-translation
New Crowdin updates
2025-12-14 20:07:48 +01:00
El RIDO c3ffb46988 Merge pull request #1738 from PrivateBin/dependabot/github_actions/actions/cache-5
Bump actions/cache from 4 to 5
2025-12-14 20:04:20 +01:00
Ribas160 b1f57bddd1 Fix eslint errors 2025-12-14 09:18:56 +02:00
Ribas160 ed9b3d1aa0 fix: The content format is not reset on create a new or clone document 2025-12-14 09:08:48 +02:00
PrivateBin Translator Bot de44e79517 New translations en.json (Polish) 2025-12-13 10:30:04 +01:00
dependabot[bot] 3f5858616d Bump actions/cache from 4 to 5
Bumps [actions/cache](https://github.com/actions/cache) from 4 to 5.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](https://github.com/actions/cache/compare/v4...v5)

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

Signed-off-by: dependabot[bot] <support@github.com>
2025-12-12 11:04:20 +00:00
El RIDO 5a067e893f Merge pull request #1737 from PrivateBin/attachment_disappears_after_paste_fix
fix: Attachment disappears after a "paste" in the message area
2025-12-10 07:11:47 +01:00
Ribas160 54d002d26f fix: Attachment disappears after a "paste" in the message area 2025-12-09 15:43:59 +02:00
El RIDO 52c0846dad Merge pull request #1734 from PrivateBin/php85
Enable PHP 8.5 testing and handle deprecations
2025-12-03 19:10:03 +01:00
El RIDO 4f28c357ae Merge pull request #1715 from PrivateBin/i18n/soften-html-encoding
fix: do not encode source JSON translation string resulting in wrong display of special characters like '
2025-12-03 19:07:17 +01:00
El RIDO f9e48ae561 Merge pull request #1733 from PrivateBin/sv-enable
enable Swedish translations
2025-12-02 19:09:54 +01:00
El RIDO eaf8f9f92e address PHP 8.5 deprecation 2025-12-02 07:07:04 +01:00
El RIDO 6f778eeec3 address PHP 8.5 deprecation 2025-12-02 06:54:36 +01:00
El RIDO c6343be01b enable PHP 8.5 for testing 2025-12-02 06:44:53 +01:00
El RIDO aa931c7a5c enable Swedish translations 2025-12-02 06:40:07 +01:00
El RIDO a844c19386 Merge pull request #1728 from PrivateBin/crowdin-translation
New Crowdin updates
2025-12-02 06:06:14 +01:00
PrivateBin Translator Bot fdfe8877bc New translations en.json (Swedish) 2025-12-01 21:51:02 +01:00
rugk ce06857d2c chore update SRI hash of main JS file 2025-11-27 21:05:59 +00:00
PrivateBin Translator Bot d87855954f New translations en.json (Corsican) 2025-11-24 17:06:38 +01:00
El RIDO 6087cad88e Merge pull request #1726 from PrivateBin/dependabot/github_actions/actions/checkout-6
Bump actions/checkout from 5 to 6
2025-11-22 08:05:53 +01:00
dependabot[bot] 3be3aeb080 Bump actions/checkout from 5 to 6
Bumps [actions/checkout](https://github.com/actions/checkout) from 5 to 6.
- [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/v5...v6)

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

Signed-off-by: dependabot[bot] <support@github.com>
2025-11-21 11:04:46 +00:00
El RIDO 6220f7e4fa Merge pull request #1721 from PrivateBin/exception-refactoring
Exception handling refactoring
2025-11-21 08:52:48 +01:00
El RIDO 65a90360b6 apply Scrutinizer fix 2025-11-20 09:23:47 +01:00
El RIDO 348d36d6ee prefer DirectoryIterator for readability, also test jbo translation, log deletion errors 2025-11-20 09:13:15 +01:00
El RIDO 3146d41609 apply StyleCI recommendation 2025-11-20 08:28:50 +01:00
El RIDO b4db5f8e57 apply null coalescing operator, strict equality, avoid aliases, prefer empty 2025-11-20 08:19:14 +01:00
El RIDO fc4a92e6a4 apply Scrutinizer fix 2025-11-19 19:40:05 +01:00
El RIDO 9c5ba6ffc3 apply StyleCI recommendation 2025-11-19 19:26:00 +01:00
El RIDO 69e5fc1b05 apply null coalescing operator 2025-11-19 19:24:17 +01:00
El RIDO c8643f187e apply null coalescing operator
Co-authored-by: Mikhail Romanov <42250412+Ribas160@users.noreply.github.com>
2025-11-19 18:45:35 +01:00
El RIDO 0e2055d54a remove unnecessary variable 2025-11-19 11:15:28 +01:00
El RIDO 3caf3214f1 apply StyleCI recommendation 2025-11-19 10:02:15 +01:00