El RIDO
b45bef8388
Renamed classes for full PSR-2 compliance, some cleanup
8 years ago
El RIDO
9bde729cb5
Merge pull request #54 from Sobak/coding-style
...
Coding style
8 years ago
El RIDO
8e55eafd89
fixing "risky" unit tests
8 years ago
Sobak
5d7003ecc1
Convert to PSR-2 coding style (using phpcs-fixer)
8 years ago
Simon Rupf
d14eb0efe4
fixing configuration and its test to match the new namespaces
8 years ago
Sobak
54f96b9938
Introduce PSR-4 autoloading
8 years ago
El RIDO
9a9362789b
addressing issues with failed attachement uploads due to webserver configuration, resolves #15
8 years ago
rugk
535710cdd6
Add htaccess to prevent template access
8 years ago
El RIDO
c5606a47fe
refactoring away RainTPL and templating, resolves #36
8 years ago
El RIDO
7d1dc55a27
actually use local variable (for Codacy)
8 years ago
rugk
d367655c6d
Fix build
...
Thanks https://stackoverflow.com/questions/12346876/php-foreach-that-returns-keys-only#12346910
8 years ago
rugk
e70159c1bb
Avoid unused local variables
...
Funnily you introduced this in a "code quality improve commit" (b53efda635
), but Codacy complained about it...
8 years ago
El RIDO
b53efda635
improving code coverage and unit testing
8 years ago
El RIDO
ff0c55c0d6
introduce option to disable vizhash for paranoid admins, resolves #20 point 2.4
8 years ago
El RIDO
f8bc40b4e4
introducing automatic purging of expired pastes, triggered by default at least 5 minutes apart, deleting a maximum of 10 pastes - resolves #3
8 years ago
El RIDO
4d10fd9690
fixing support for pre renaming configuration file format, resolves #37
8 years ago
El RIDO
3b3b5277eb
refactoring to improve code quality
8 years ago
El RIDO
79509ad48a
renaming the fork to PrivateBin
8 years ago
El RIDO
0e217a42c5
introduce new zerobincompatibility option, replacing the base64 one, if it is enabled, delete tokens use sha256; added per paste salt with server salt fallback; this resolves the points 2.2 & 2.9 in #103
8 years ago
El RIDO
6b0b814dc6
removing leftover from previously using a different function, resolves #83
8 years ago
El RIDO
d664af6ce5
giving up on HHVM unit tests for now, will open an issue for it
8 years ago
El RIDO
c175abaf77
improvements to get the HHVM build to pass
8 years ago
El RIDO
36c1b17777
that variable is required to suppress output when unit testing, also travis has composer preinstalled
8 years ago
El RIDO
8e11f0873c
small code style improvements, trying to get phpunit with hhvm to work in travis
8 years ago
El RIDO
9267e281f5
adding support for automatic code coverage generation into codacy
8 years ago
El RIDO
5980f8b603
removing some unused code detected by codacy
8 years ago
El RIDO
a856a50bc3
addressing random unit test failures, resolves #106
8 years ago
El RIDO
e89a8b6898
fixing deprecations with newer phpunit versions
8 years ago
El RIDO
1158c81259
only mock mcrypt if it isn't installed
8 years ago
El RIDO
3a92c940a9
implementing media type negotiation (based on language negotiation
...
logic) in cases both JSON and (X)HTML are being requested, resolving #68
9 years ago
El RIDO
a4ebdbc606
re-introducing (optional) URL shortener support, resolves #58
9 years ago
El RIDO
24a4328c55
incrementing version, updating changelog, added missing phpdoc comments
9 years ago
El RIDO
42a9c92b5e
improved database backend support for larger files (100 KiB - 16 MiB),
...
introduced database versioning to reduce amount of checks done per
request
9 years ago
El RIDO
d42975580a
expire_options and formatter_options should not be filled up with
...
default values, resolves #52
9 years ago
El RIDO
176dff3b70
renaming config file to make updates easier, resolving #50
9 years ago
El RIDO
5a9879623f
added incorrectly ignored unit test file, correcting ignore
9 years ago
El RIDO
ca07398b66
adding option to hide clone button on expiring pastes, resolves #34
9 years ago
El RIDO
f96b0c0afe
adding unit tests for all JSON-LD cases
9 years ago
El RIDO
14d08ec56d
working on JSON-LD validity, added CORS headers preparing external API
...
call support
9 years ago
El RIDO
f21567133c
changing paste read output for API refactoring
9 years ago
El RIDO
2e3bacb699
fixing deletion issue in request refactoring, starting work on API read
...
refactoring
9 years ago
El RIDO
1d6cfb7f3b
refactoring delete API, added external JSON-LD context
9 years ago
El RIDO
9e6e29bc93
working on API: simplifying PUT request mocking
9 years ago
El RIDO
e5b096ed8c
found and fixed a bug when using expiration together with discussion
9 years ago
El RIDO
add980d36f
adding UI tests for database configuration, fixed an issue with comment
...
table creation
9 years ago
El RIDO
7ec94e0db5
implementing request refactoring, beginning JS changes for JSON API, but
...
discovered that DELETE and PUT are not available on all webservers by
default
9 years ago
El RIDO
6b7dc44039
preparing unit test for request object
9 years ago
El RIDO
ce3f10f143
improving unit tests, fixing regression in DB model
9 years ago
El RIDO
694138c5d4
mostly finished with data model refactoring
9 years ago
El RIDO
211d3e4622
preparing unit test for model refactoring, refactoring traffic limiter
9 years ago
El RIDO
d04eab52c9
refactoring how attachments are stored
9 years ago
El RIDO
22b4c89227
adapting configGenerator for 0.21
9 years ago
El RIDO
6d24ff824e
refactoring configuration
9 years ago
El RIDO
0de9f868fa
improving unit tests, fixing #38
9 years ago
El RIDO
608605cd54
incrementing version number, updating docs
9 years ago
El RIDO
106141efa4
merging @vikstrous file upload feature for #20 from
...
8a6d268278
9 years ago
El RIDO
0e53d1ee86
added markdown support and a dropdown for the format selection. The
...
options other then markdown are plain text and source code (syntax
highlighting). Resolves #25
9 years ago
El RIDO
b060d57524
- implemented php side of plural translation
...
- using it to generate labels dynamically for the expire options
(deprecating the [expire_labels] configuration).
- added translation of the human readable data sizes to support the
french octet
- fixed IEC label for kibibytes
9 years ago
El RIDO
a2af88a36e
initial work on translations, covering the PHP side of it
9 years ago
El RIDO
411419d597
adding tests and unifying paste creation output
9 years ago
El RIDO
b25022e403
refactored JSON API, its now possible to retrieve pastes as JSON, which
...
is now used when posting comments, eliminating the need to store the
password in sessionStorage
9 years ago
El RIDO
802a0b26b9
burn after reading messages are only deleted after callback by JS when
...
successfully decrypted, resolves #11
9 years ago
El RIDO
d3c4600806
slight configuration changes, template modifications to make discussions
...
and password configurable, removed generated configuration test as it
grows quite big and a new one can be generated easily if needed
9 years ago
El RIDO
2d0668af03
concluding work on configuration test generator for #16 . Replaced a few
...
die()s in the code with Exception, making it possible to test properly.
Fixed some outdated unit tests.
9 years ago
El RIDO
99dbb22e21
refining configuration test generator, now supporting conditions on
...
tests (i.e. if syntax highlighting is false, highlighting should never
be loaded)
9 years ago
El RIDO
1c4d1aa6b6
working on configuration unit test generator as described in #16
9 years ago
El RIDO
d57d6cf44b
created initial unit tests for main zerobin class
9 years ago
El RIDO
f775da3931
fixing nasty deletion bug from #15 , included unit tests to trigger it
...
and reworked persistence classes to through exceptions rather to fail
silently
9 years ago
El RIDO
cb28056223
made highlighting more configurable, added all four themes, there is now a configurable flavour text (notice)
9 years ago
El RIDO
49c6e3c1b6
updated base64.js to version 2.1.9, using minified version found at
...
9192c510f5/base64.min.js
kudos Dan Kogai
small improvements to input checking
implementing default values for most configuration options
switching to versioned JS files to avoid version hack used in template
9 years ago
Sebastien SAUVAGE
43a439e7d0
Time attack protection on hmac comparison
...
This fixes issue 2.7 of https://defuse.ca/audits/zerobin.htm , and thus
(with commit a24212afda90ca3e4b4ff5ce30d2012709b58a28) also issue 2.8.
(cherry picked from commit 0b4db7ece313dd268e51fc47a0293a649927558a)
Conflicts:
index.php
9 years ago
El RIDO
ad70051323
reviewed unit tests, fixing line endings, added more tests
9 years ago
Sebastien SAUVAGE
7db76d8d71
Updated json checking.
...
- adapted to SJCL changed
- added entropy checking (from
f2ee2e8ba2
)
(cherry picked from commit 57e6274c64e2c99c754b63586af6b34c374fbc2b)
Conflicts:
index.php
9 years ago
El RIDO
134d22c958
small unit testing improvements, removing never accessed code
9 years ago
Sebastien SAUVAGE
5b253cf77c
ZeroBin 0.17
...
* added deletion link.
* small refactoring.
* improved regex checks.
* larger server alt on installation.
11 years ago
Simon Rupf
630e16c4a0
Added more configuration options, based on patch by Uli Köhler
11 years ago
Simon Rupf
907538875b
removed leftovers from submodule uglifyjs, added credits file,
...
cleaned up CSS, changed template to output clean XHTML 5,
added unit tests for 60% of the code, found a few bugs by doing
that and fixed them
12 years ago