Commit Graph

786 Commits

Author SHA1 Message Date
Mikhail Romanov 8c4b3bb114 Insert file names as break-separated text nodes
Co-authored-by: El RIDO <elrido@gmx.net>
2025-11-12 11:27:44 +01:00
Ribas160 88fd86b994 Use pure JavaScript to create a div element 2025-11-12 11:26:49 +01:00
Ribas160 b14da334f4 Insert drag and drop file names as a text, not html 2025-11-12 11:26:01 +01:00
Ribas160 d03ec380d1 fix: error fetching attachments from blob 2025-11-12 11:24:21 +01:00
El RIDO 41dcdbc41d ensure there is still a space between commenter icon and name 2025-11-12 11:21:45 +01:00
El RIDO 68972322d9 Refactored jQuery DOM element creation
using plain JavaScript, to ensure text nodes are sanitized
2025-11-12 11:20:32 +01:00
El RIDO 1f5ed30a63 update DOMpurify library from 3.2.7 to 3.3.0 2025-11-12 11:17:51 +01:00
El RIDO dc3bc8b23d 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-11-12 11:11:24 +01:00
rugk 55472df906 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-11-12 11:07:17 +01:00
El RIDO e3ec9dc963 upgrade kjua to 0.10.0 2025-11-12 11:07:03 +01:00
El RIDO c7c0420d63 upgrade base-x to 5.0.1 2025-11-12 11:03:12 +01:00
El RIDO 3e3ee8abc5 update bootstrap CSS library from 5.3.7 to 5.3.8 2025-11-12 10:52:07 +01:00
El RIDO d5cd6741c5 incrementing version 2025-06-30 10:56:53 +02:00
Ribas160 fa662547fe Attachments with empty file name fix 2025-06-29 21:30:11 +03:00
Ribas160 fcce915a5f Duplicate attachment for every comment fix 2025-06-29 21:27:11 +03:00
El RIDO 20e30b6637 incrementing version 2025-06-28 21:23:37 +02:00
El RIDO 389b215b2f Merge pull request #1564 from Ribas160/file_name_and_size_on_download_page
Show file name and size on download page
2025-06-28 14:01:41 +02:00
Ribas160 a2ca2ecb37 Use 1024 based file size units to follow consistency 2025-06-28 14:00:50 +03:00
Mikhail Romanov d15ac590d7 Use decodedData to get file size
Co-authored-by: El RIDO <elrido@gmx.net>
2025-06-28 13:47:43 +03:00
El RIDO 964b4da50a Merge pull request #1545 from PrivateBin/fixes
Fixes for zlib caching & handling undefined globals
2025-06-27 16:49:00 +02:00
Ribas160 d01c37c59d Show file name and size on download page 2025-06-26 18:12:22 +03:00
El RIDO 8d720e4990 Merge branch 'master' into dompurify-3.2.6 2025-06-07 10:41:48 +02:00
El RIDO 34028229c8 Merge branch 'master' into fixes 2025-06-07 10:37:23 +02:00
Ribas160 095a5be0b6 Allow multiple files 2025-06-02 14:35:54 +03:00
Ribas160 6dac586f41 Fix the duplicated message box in comments 2025-05-24 12:38:39 +03:00
Ribas160 5654ef2db8 Hide Reply button in the discussions once clicked to avoid losing the text input 2025-05-23 13:37:38 +03:00
El RIDO dededc9935 upgrade DOMpurify library to 3.2.6 2025-05-20 07:51:50 +02:00
El RIDO bace4695ac update zlib js suffix, as a cache breaker 2025-05-18 20:21:34 +02:00
El RIDO 31162e8011 upgrading DOMpurify library to 3.2.5 2025-04-06 08:30:49 +02:00
El RIDO ebb9e231aa Merge pull request #1516 from PrivateBin/js-devel-dep-update
update jsdom
2025-02-28 22:39:03 +01:00
El RIDO e68430e9c5 clarify comments 2025-02-28 21:38:30 +01:00
El RIDO d0303dce9c clarify comments 2025-02-28 21:36:51 +01:00
El RIDO 9f82eb64cb clarify test descriptions 2025-02-28 21:25:40 +01:00
El RIDO 4e518b3fce update jsdom dependency, fix tests 2025-02-27 08:16:30 +01:00
Ribas160 412987ea5b Merge remote-tracking branch 'origin/master' into allow_change_template
# Conflicts:
#	lib/Configuration.php
2025-02-14 15:36:57 +02:00
rugk ac62d909b9 Remove SAFE_FOR_JQUERY from DOMPurify as it has been removed
DOMPurify removed this configuration option, so I guess it has no effect and can be removed.

See docs: https://github.com/cure53/DOMPurify?tab=readme-ov-file#removed-configuration
>  SAFE_FOR_JQUERY 	2.1.0 	No replacement required.

The PR https://github.com/cure53/DOMPurify/pull/474 also links the commits, which removed it.
2025-02-11 17:32:40 +01:00
El RIDO 64b0e33574 update jsdom dependency, fix tests 2025-02-11 08:10:25 +01:00
El RIDO e4d1f4a26d update jsdom dependency, disable test 2025-02-11 07:52:23 +01:00
ribas160 a4b0a993c7 Doc blocks added, available templates may be set in the general configuration file 2025-02-08 14:32:20 +02:00
El RIDO 540172d0f7 update jsdom dependency 2025-02-07 09:00:53 +01:00
El RIDO 3b6b97429d update jsdom dependency, fix tests 2025-02-07 08:54:55 +01:00
El RIDO dc983621ac update jsdom dependency, fix tests 2025-02-07 08:19:09 +01:00
El RIDO ac63b91a1b fix prompt test
rngState 883a6d2e518704c9fb fails on a single \n (line feed)

password inputs can't contain carriage returns *or* line feeds
2025-02-06 08:48:36 +01:00
El RIDO db15ae8b43 fix prompt test
rngState 003ad8214ef0579cb6 fails on a single \n (line feed)

password inputs can't contain carriage returns *or* line feeds
2025-02-06 08:43:02 +01:00
El RIDO 740fd90db9 update jsdom & jsdom-global development dependency, fix cookie test 2025-02-06 08:39:25 +01:00
El RIDO aa8f77f673 update jsdom-url development dependency 2025-02-06 08:09:15 +01:00
Ribas160 c7a4ced9e1 Added the ability to web users to change the theme 2025-02-05 15:24:15 +02:00
El RIDO c963ba4d7a upgrade webcrypto used in testing
old package got corrupted on npm and fails to install
2025-02-03 07:52:32 +01:00
El RIDO 473baf8250 incrementing version 2025-02-01 10:43:54 +01:00
El RIDO 58d11f2ba0 upgrading DOMpurify library to 3.2.4 2025-01-31 08:16:03 +01:00