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
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
Ribas160
5d119768c3
JavaScript unit tests for new SI units added, privatebin.js SRI updated
2025-07-24 00:33:38 +03:00
Mikhail Romanov
390f8ddc53
The rest of SI units added
...
Co-authored-by: El RIDO <elrido@gmx.net>
2025-07-24 00:20:33 +03:00
Ribas160
863cb89ad9
Switch from binary bytes to SI-units
2025-07-23 21:06:20 +03:00
El RIDO
e50a809855
upgrade base-x to 5.0.1
2025-07-22 10:32:08 +02:00
El RIDO
f3e2c53729
upgrade kjua to 0.10.0
2025-07-22 09:49:48 +02:00
El RIDO
734b85eb08
remove more v1 remnants
...
kudos @Ribas160
2025-07-21 12:28:40 +02:00
El RIDO
c4e0abab02
Merge branch 'master' into drop-legacy-zerobin-support
2025-07-14 21:41:50 +02:00
TW - Vincent
ce025cf884
Mod_security2 BodyProcessor json compliance
2025-07-08 13:43:46 +02:00
El RIDO
f7cf389f36
remove v1 backend support and version checks in the frontend
2025-07-05 17:21:12 +02:00
El RIDO
6d5323e351
drop legacy paste format support
...
remove support for ZeroBin & v1 pastes and base64 & rawinflate libraries
2025-07-05 11:06:30 +02:00
Ribas160
38955754f3
Fixed hightlight file upload on bootstrap5 template
2025-07-04 18:18:00 +03:00
Ribas160
0ce8627561
Fixed adding attachments from clipboard
2025-07-04 18:15:28 +03:00
Ribas160
99cee27a6d
Merge branch 'master' into remove_page_template
...
# Conflicts:
# CHANGELOG.md
# lib/Configuration.php
2025-07-03 13:14:52 +03:00
Ribas160
692e7af196
- window.confirm fallbacks for page template removed
...
- page template removed from configuration-test-generator
2025-07-03 13:13:42 +03:00
Ribas160
c4e381f523
Name mismatches in attached files fixed
2025-07-02 16:13:38 +03: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
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
Ribas160
d01c37c59d
Show file name and size on download page
2025-06-26 18:12:22 +03: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
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
ribas160
a4b0a993c7
Doc blocks added, available templates may be set in the general configuration file
2025-02-08 14:32:20 +02:00
Ribas160
c7a4ced9e1
Added the ability to web users to change the theme
2025-02-05 15:24:15 +02:00
ribas160
48eb6ef87a
Custom clipboard object added to the unit tests
2025-01-10 16:24:49 +02:00
Ribas160
6c651ea676
CopyToClipboard unit tests
2025-01-07 17:40:18 +02:00
ribas160
67a1dfb683
Keep paste URL, if changing language in dropdown
2025-01-05 23:21:25 +02:00
El RIDO
ffd4210fe2
Comment is now superfluous thanks to better code. 🎉
...
Co-authored-by: rugk <rugk+git@posteo.de>
2025-01-05 19:28:35 +01:00
El RIDO
4076a831eb
Merge branch 'master' into keyboard-trap
2025-01-05 07:23:41 +01:00
ribas160
7b57d7b289
- trash icon added to bootstrap-icons.svg
...
- made delete link a separate button
- unit tests updated
2025-01-04 22:53:32 +02:00
El RIDO
45b38770db
Merge branch 'master' into keyboard-trap
2025-01-04 08:48:08 +01:00
ribas160
b86eb93dbe
Added the button to copy the paste link to the clipboard
2025-01-03 18:19:12 +02:00
ribas160
0462da6e8e
- used bootstrap 5 CSS icon named copy, bootstrap 3 CSS glyphicon named duplicate
...
- keyboard-shortcuts made more accessible by wrapping the keys into kbd-tags
- translate messages may contain allowed HTML tags
- added the record to the CHANGELOG.md
2025-01-02 15:13:44 +02:00
ribas160
a6a7df9a72
Merge remote-tracking branch 'upstream/master' into copy_to_clipboard_btn
...
# Conflicts:
# i18n/ar.json
# i18n/bg.json
# i18n/ca.json
# i18n/co.json
# i18n/cs.json
# i18n/de.json
# i18n/el.json
# i18n/en.json
# i18n/es.json
# i18n/et.json
# i18n/fi.json
# i18n/fr.json
# i18n/he.json
# i18n/hi.json
# i18n/hu.json
# i18n/id.json
# i18n/it.json
# i18n/ja.json
# i18n/jbo.json
# i18n/ko.json
# i18n/ku.json
# i18n/la.json
# i18n/lt.json
# i18n/nl.json
# i18n/no.json
# i18n/oc.json
# i18n/pl.json
# i18n/pt.json
# i18n/ro.json
# i18n/ru.json
# i18n/sk.json
# i18n/sl.json
# i18n/sv.json
# i18n/th.json
# i18n/tr.json
# i18n/uk.json
# i18n/zh.json
# lib/Configuration.php
2024-12-29 22:19:35 +02:00
ribas160
6c39a1441c
Copy paste to clipboard button added. Copy paste to clipboard shortcut added
2024-12-28 18:42:46 +02:00
El RIDO
333f0568b6
fix bootstrap 5 modal usage
...
kudos @kanna5
2024-12-27 09:17:35 +01:00
El RIDO
99e0b7efac
fix brackets, kudos @kanna5
2024-12-25 07:27:58 +01:00
El RIDO
c7195aaf9a
replicate template changes, fix bugs
...
- fixes QR code height introducing space even when hidden in page layout
- fix modals in bootstrap 5 (modal syntax changed heavily, no longer jQuery integrated)
- hide and show tab-toggle depending on application state
- don't encode HTML entities in translated messages containing kbd tags (in addition to links)
2024-11-24 15:42:38 +01:00
El RIDO
544c4d2f5f
prototype keyboard trap toggle
...
- needs updating all language files
- replicate changes to all templates
2024-11-24 11:45:46 +01:00
El RIDO
97edbcc167
Merge branch 'master' into navigate-after-delete
2024-10-18 22:39:04 +02:00
rugk
e675b2547f
Fix
...
Fixes https://github.com/PrivateBin/PrivateBin/issues/1420
I have not tested it practically (just a quick hotfix), but given the code history and this was what worked before, I guess this should work. 🙃
2024-10-16 23:09:00 +02:00
parthiv-m
f2b60d3765
Add _is_deleted status message to Controller and prompt for button click after paste delete
2024-10-13 17:45:05 -04:00
parthiv-m
d69d29f3a9
Fix: Once a paste is deleted, navigate to
...
the home page after 5 seconds; change type
of the corresponding alert to alert-success
2024-10-07 17:42:37 -04:00
El RIDO
b9d24b74b3
Merge branch 'version-sed'
2024-05-30 18:52:18 +02:00
9401adarsh
372fb58d20
fix: password input not resetting bug, add resetPasswordInput() method
2024-05-29 16:20:28 +05:30