rugk
|
8d2e19f791
|
Try to move sanitisation & links into setElementText
|
7 years ago |
rugk
|
3d2dbabaec
|
add some more tests from OWASP
|
7 years ago |
El RIDO
|
9fa2ea3373
|
ensuring text is sanitized in all cases, before being injected into the DOM
|
7 years ago |
El RIDO
|
2d00202b42
|
correcting the XSS test, commenting two failing patterns, to be reviewed by @rugk
|
7 years ago |
El RIDO
|
233bd65b00
|
Merge branch 'master' into sanitizeMarkdown, changing test to use new library
|
7 years ago |
El RIDO
|
f2628a0bf3
|
added a test for #183, fails at this point, #258 should fix this
|
7 years ago |
El RIDO
|
e40da8b1a6
|
Merge branch 'js-unit-testing'
|
7 years ago |
rugk
|
bbec693cab
|
Allow DOMPurify as a global
|
7 years ago |
rugk
|
b6d7d56774
|
Sanitize HTML code
using DOMPurify v1.0.2
Fixes https://github.com/PrivateBin/PrivateBin/issues/183
|
7 years ago |
rugk
|
bccb349226
|
adjust .gitignore to use new config file name
|
7 years ago |
El RIDO
|
35ea65b797
|
handling JSVerify RNG state 89fdc94018a35b672e
|
7 years ago |
El RIDO
|
c6ddee317d
|
adding tests for PasteViewer class
|
7 years ago |
El RIDO
|
10ee37b35c
|
handling JSVerify RNG state 08a74d310cfb58269e
|
7 years ago |
El RIDO
|
af073c9ca1
|
adding tests for Editor class
|
7 years ago |
El RIDO
|
5a2bb1993d
|
handling JSVerify RNG state 82fb7d20c918a6e543
|
7 years ago |
El RIDO
|
360a0921e2
|
adding tests for Prompt class, typos
|
7 years ago |
El RIDO
|
984941f901
|
adding test for hiding messages
|
7 years ago |
El RIDO
|
9d1a9a0da7
|
fixing paste success message handling in page template
|
7 years ago |
El RIDO
|
b1e1878861
|
fully testing remaining time display function
|
7 years ago |
El RIDO
|
73bc685178
|
fixing error message display revealed by testing remaining time display function
|
7 years ago |
El RIDO
|
86ecdb1155
|
fixing post increment
|
7 years ago |
El RIDO
|
4652b5af7b
|
preferring pre-increment StyleCI recommendation
|
7 years ago |
El RIDO
|
478cf288b4
|
implementing StyleCI recommendations
|
7 years ago |
El RIDO
|
c2133cfa7e
|
Merge branch 'master' into js-unit-testing
|
7 years ago |
El RIDO
|
0cfb019615
|
handling JSVerify RNG state 0b2b38c4ef690d1a57
|
7 years ago |
El RIDO
|
6c8f57f91f
|
making PasteStatus testable, adding test for paste creation notification
|
7 years ago |
El RIDO
|
e51aa7c80f
|
increasing coverage (by three lines)
|
7 years ago |
El RIDO
|
9af4a4e2f5
|
handling JSVerify RNG states 08a8fd9e23076415bc & 8623a0cde74fb19568
|
7 years ago |
El RIDO
|
01a6c0142a
|
adding test for alert handler
|
7 years ago |
El RIDO
|
c6e0f2d223
|
adding test for hiding messages
|
7 years ago |
El RIDO
|
1fd13981d4
|
adding test for hiding loading indicator
|
7 years ago |
El RIDO
|
29419d03cd
|
avoid logs polluting the unit test output
|
7 years ago |
El RIDO
|
751731414e
|
adding test for loading indicator
|
7 years ago |
El RIDO
|
87e88e3159
|
linking to pastebin wiki article for explanation
|
7 years ago |
El RIDO
|
9c6aec86c4
|
making Alert class resetable and adding first tests for it
|
7 years ago |
El RIDO
|
d75cea856a
|
concluding UiHelper tests that are possible in headless jsdom at this time
|
7 years ago |
El RIDO
|
ef6b6816b0
|
implemented test, but again not supported yet by jsdom
|
7 years ago |
El RIDO
|
4410ddcd84
|
adding tests for UiHelper.reloadHome, making UiHelper unit testable and handling JSVerify RNG states 846932d5afb10ce748 & 012c1f9483adb6e750
|
7 years ago |
El RIDO
|
cbcc26ec37
|
fixing false positive with RNG state 0bc96fe3b8d170254a
|
7 years ago |
El RIDO
|
4cb21350a0
|
TravisCI can be a bit slow (locally this test takes 386ms)
|
7 years ago |
El RIDO
|
414693fa90
|
testing both cases of the logic required for #167
|
7 years ago |
El RIDO
|
6dbb098d7a
|
had to introduce a mock function to test the historyChange state
|
7 years ago |
El RIDO
|
379571d522
|
Merge branch 'master' into js-unit-testing
|
7 years ago |
El RIDO
|
502e96c129
|
StyleCI recommendations
|
7 years ago |
El RIDO
|
a5d5f6066a
|
refactoring as recommended by Scrutinizer
|
7 years ago |
El RIDO
|
81ac232710
|
increasing timeouts for travisCI, that seems to have gotten slower
|
7 years ago |
El RIDO
|
cd5fded4a4
|
adapting configuration test generator to new INI model and point release support
|
7 years ago |
El RIDO
|
9f26894b2e
|
PHP < 5.6 compatibility and StyleCI recommendations
|
7 years ago |
El RIDO
|
4f06feef81
|
implemented JSON file conversion on purge and storage in PHP files for data leak protection
|
7 years ago |
El RIDO
|
577586c47f
|
wrote a unit test to generate old style pastes and comments and check that the purge converts them to PHP files
|
7 years ago |