1
1
Fork 0
mirror of https://code.mensbeam.com/MensBeam/Arsse.git synced 2024-12-22 21:22:40 +00:00
Arsse/tests/lib
J. King d365529493 Multiple fixes to input sanitization
- Database functions now accept any input, but throw typeViolation exceptions where appropriate instead of idMissing or subjectMissing
- Added unit tests for the new Misc\ValueInfo static class
- Added ValueInfo::id() method to centrally validate database IDs, and made use of it consistently
- Made use of PHP's filter_var() function where appropriate when validating or sanitizing input
- Made the NCN protocol handler reject most invalid IDs before handing off to method handlers
- Made NCN's feedUpdate and subscriptionMove methods return 422 on invalid input
- Adjusted several tests to handler type violations
2017-09-27 22:25:45 -04:00
..
Database Multiple fixes to input sanitization 2017-09-27 22:25:45 -04:00
Db Passed code through linter 2017-08-29 10:50:31 -04:00
Lang Passed code through linter 2017-08-29 10:50:31 -04:00
User Passed code through linter 2017-08-29 10:50:31 -04:00
AbstractTest.php Multiple fixes to input sanitization 2017-09-27 22:25:45 -04:00
Database.php Passed code through linter 2017-08-29 10:50:31 -04:00
Result.php Passed code through linter 2017-08-29 10:50:31 -04:00