aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/AntiXSSTest.php
Commit message (Collapse)AuthorAgeFilesLines
* tests: Don't explicitly require CUT in AntiXSSTest.Harald Eilertsen2023-07-121-2/+0
| | | | Rely on PHPUnit config to load the app and the code under test.
* unit-tests: There's no need to test builtin func hex2binHarald Eilertsen2023-07-121-10/+0
|
* unit tests: Cosmetic fixes in AntiXSSTest.phpHarald Eilertsen2023-07-121-25/+29
| | | | | | - Start comments with capital letter - Fix indentation - Add missing doc comments
* Add helper to escape URLs.Harald Eilertsen2022-03-201-0/+20
| | | | | | | | | The escaping makes the URL safe for display and for use in HTML element attributes (such as href="..." etc), but does not guarantee that the URL itself is valid after conversion. This should be good enough for mitigating XSS issues caused by injecting html or javascript into a URL. Also probably good enough for _most_ normal URLs, but there may be devils hidden in the details somewhere.
* [TASK] Restructure tests/ folder.Klaus Weidenbach2016-10-191-0/+73
Move unit tests to tests/unit/. Get the old still working UnitTests into a working state again. Updated composer.json with required-dev packages. Create a new folder tests/acceptance for Behat functional/acceptance testing. Add a first Feature draft of a Behat functional test for local login.