Commit Graph

856 Commits

Author SHA1 Message Date
Cloudscape Germany 0f4ac5e98e Update js/legacy.js
Co-authored-by: El RIDO <elrido@gmx.net>
2026-01-25 20:58:24 +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
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
Ribas160 54d002d26f fix: Attachment disappears after a "paste" in the message area 2025-12-09 15:43:59 +02:00
El RIDO aa931c7a5c enable Swedish translations 2025-12-02 06:40:07 +01:00
dependabot[bot] f4f655966c Bump js-yaml from 4.1.0 to 4.1.1 in /js
Bumps [js-yaml](https://github.com/nodeca/js-yaml) from 4.1.0 to 4.1.1.
- [Changelog](https://github.com/nodeca/js-yaml/blob/master/CHANGELOG.md)
- [Commits](https://github.com/nodeca/js-yaml/compare/4.1.0...4.1.1)

---
updated-dependencies:
- dependency-name: js-yaml
  dependency-version: 4.1.1
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-11-15 10:37:12 +00:00
El RIDO 19ca6d3dab incrementing version 2025-11-12 08:00:50 +01:00
El RIDO e427458cd0 Merge branch 'master' into advisory-fix-1 2025-11-11 22:00:09 +01:00
Mikhail Romanov ff5aee85b4 Insert file names as break-separated text nodes
Co-authored-by: El RIDO <elrido@gmx.net>
2025-11-11 20:05:32 +02:00
Ribas160 9c71fbcc70 Use pure JavaScript to create a div element 2025-11-11 17:45:27 +02:00
Ribas160 14b68af528 Insert drag and drop file names as a text, not html 2025-11-10 17:59:18 +02:00
Ribas160 a7b253a43a fix: error fetching attachments from blob 2025-11-05 17:33:08 +02:00
El RIDO a91d0afebd ensure there is still a space between commenter icon and name 2025-10-28 16:35:58 +01:00
El RIDO 2f70456e9a incrementing version 2025-10-28 16:08:13 +01:00
El RIDO 8293d1fb5d apply ESLint recommendation 2025-10-28 11:33:47 +01:00
El RIDO 43cf8b53ac Merge branch 'master' into purify-3.3.0 2025-10-28 11:27:17 +01:00
El RIDO c4f8482b30 Refactored jQuery DOM element creation
using plain JavaScript, to ensure text nodes are sanitized
2025-10-25 12:56:55 +02:00
El RIDO fd2c2ae0c5 update DOMpurify library from 3.2.7 to 3.3.0 2025-10-25 10:52:40 +02:00
El RIDO ca70c7555d Add tests of malicious file names 2025-10-24 15:00:56 +02:00
El RIDO 10cb5e132c do not increment unrelated versions in package lock file
revert accidental changes from commit 9b7daf5d0a and exclude package lock from version increment
2025-10-12 11:53:31 +02:00
El RIDO 9b7daf5d0a incrementing version 2025-10-12 08:50:13 +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 ed9bdc4272 update DOMpurify library from 3.2.6 to 3.2.7 2025-10-09 08:57:20 +02:00
rugk 851befb39d Merge branch 'master' into eslint 2025-10-08 18:31:10 +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
El RIDO 51481656ba attempting to improve eslint config 2025-10-06 23:12:19 +02:00
El RIDO bef55b3bb1 Merge branch 'master' into karthikkasturi-master 2025-10-06 22:11:52 +02:00
El RIDO 23624d693c shorten show password message
as per suggestion of @rugk during review
2025-10-06 22:08:04 +02:00
rugk cdbeaeb076 style(js): fix auto-fixable problems in JS test files 2025-10-06 17:29:52 +00:00
rugk c2c1f37885 fix: make EsLint run only for PrivateBin.js 2025-10-06 17:28:15 +00:00
rugk 1250c4009b style(js): fix auto-fixable problems in privatebin.js 2025-10-06 17:27:38 +00:00
rugk bcbd116040 style: move EsLint into correct directory 2025-10-06 17:20:17 +00:00
rugk dd17f1dcc3 Merge remote-tracking branch 'origin/js-unit-readability' into eslint 2025-10-06 17:09:04 +00:00
rugk 57e40e4fcc chore: add EsLint to dev dependencies 2025-10-06 17:02:29 +00:00
El RIDO 7f93242279 upgrade eslint config and remove workaround for implicit globals
we seem to have used eslint through codeclimate in the past, but that service seems no longer integrated, possibly due to no longer being free
2025-10-06 18:30:19 +02:00
El RIDO ead315251f suppress noise from early initialization during unit tests
the tests still all passed, but the missing browser globals in the node environment could cause misleading messages in the mocha output
2025-10-06 17:38:09 +02: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
El RIDO 2e5d6dddac Merge branch 'master' into karthikkasturi-master 2025-10-05 09:51:34 +02:00
El RIDO d50231a531 apply suggestions to use existing bootstrap icons
as per discussion in https://github.com/PrivateBin/PrivateBin/pull/1647#discussion_r2345917795
2025-10-05 09:47:39 +02:00
rugk a0c0d3d37b Make sure legacy check returns true only on HTTPS (not like ftp or whatever)
I am not sure why it was expressed so convoluted before?

Found that in https://github.com/orgs/PrivateBin/discussions/1657
2025-09-30 14:21:17 +02:00