Commit Graph

51 Commits (5f1ec6792c0fa860beebcce6482e7105ab5f648e)

Author SHA1 Message Date
John Molakvoæ 4829ac57c1 fix: use `OCP\Server` 5 months ago
Josh 14b4d0327e fix(AppFramework): Log malformed protocol values and unify fallback behavior 5 months ago
Robin Appelman aa15f9d16d
chore: run rector 6 months ago
Ferdinand Thiessen 5981b7eb51
chore: apply new CSFixer rules 6 months ago
Joas Schilling 522be60ff0
fix(phpunit): Remove some more withConsecutive calls 9 months ago
Johannes Endres ae2cc23658 fix: Change UserAgent to *cloud 10 months ago
Christoph Wurst 49dd79eabb
refactor: Add void return type to PHPUnit test methods 1 year ago
provokateurin 9d1705259c
fix(AppFramework): Allow requests with OCS-APIRequest header to pass CSRF checks 1 year ago
Andy Scherzinger 1f7e2ba599
chore: Add SPDX header 2 years ago
Joas Schilling 9ed3ab7d87
test(request): Add tests to strip the port when forwarding requests 2 years ago
Arthur Schiwon 216b95f8b1 test(unit): fix RequestTest 2 years ago
Joas Schilling 2fa78f6245
Reverse X-Forwarded-For list to read the correct proxy remote address 2 years ago
Joas Schilling 2c6f32cb28
feat(request): Allow to match the client version with the IRequest::USER_AGENT_* regex 3 years ago
Côme Chilliet 8d5165e8dc
Adapt tests to config value typing 3 years ago
Artur Neumann 81f2857f34
check if params given to API are really an array 3 years ago
Stanimir Bozhilov 46c10c77e1 Fix the JSON content type regex to match all MIME types 3 years ago
Stanimir Bozhilov f7d51a39cf Add unit tests for application/scim+json content type 3 years ago
Simon Leiner 09362eaeaa
Support specifying IPv6 proxies in CIDR notation 3 years ago
Côme Chilliet c7e1c36362
Remove at matcher uses in tests/lib 4 years ago
Joas Schilling cc6653e45c
Adjust and add unit tests 4 years ago
Carl Schwan 6312c0df69
Check style update 4 years ago
Joas Schilling 74a9cadc50
Fix IPv6 remote addresses from X_FORWARDED_FOR headers before validating 6 years ago
Christoph Wurst 1584c9ae9c
Add visibility to all methods and position of static keyword 6 years ago
Christoph Wurst caff1023ea
Format control structures, classes, methods and function 6 years ago
Christoph Wurst 14c996d982
Use elseif instead of else if 6 years ago
Christoph Wurst afbd9c4e6e
Unify function spacing to PSR2 recommendation 6 years ago
Christoph Wurst b80ebc9674
Use the short array syntax, everywhere 6 years ago
Christoph Wurst 2ee65f177e
Use the shorter phpunit syntax for mocked return values 6 years ago
Daniel Kesselberg 8331d8296b
Make getServerHost more robust to faulty user input 6 years ago
Daniel Kesselberg d393b1612b
Modify regex to match some other chromium browsers 6 years ago
Roeland Jago Douma 3a7cf40aaa
Mode to modern phpunit 6 years ago
Roeland Jago Douma c007ca624f
Make phpunit8 compatible 6 years ago
Roeland Jago Douma 68748d4f85
Some php-cs fixes 6 years ago
Roeland Jago Douma 514426e27d
Only trust the X-FORWARDED-HOST header for trusted proxies 7 years ago
Oliver Wegner 401ca28f07 Adding handling of CIDR notation to trusted_proxies for IPv4 7 years ago
Roeland Jago Douma d179186430
Remove testcase 8 years ago
Roeland Jago Douma 0ee45d3d20
Fix proper types 8 years ago
Bjoern Schiessle f0202245ee
allow 'Nextcloud' in the user agent string of Android 8 years ago
Morris Jobke 43e498844e
Use ::class in test mocks 8 years ago
Roeland Jago Douma c257cd57d4
Handle SameSiteCookie check for index.php in AppFramework Middleware 8 years ago
Roeland Jago Douma 2a9192334e
Don't try to parse empty body if there is no body 9 years ago
Robin Appelman 9a8cef965f
add test for skipping cookie checks for ocs 9 years ago
Christoph Wurst 5e728d0eda oc_token should be nc_token 9 years ago
Lukas Reschke a05b8b7953
Harden cookies more appropriate 9 years ago
Joas Schilling c20ab0049f
Identify Chromium as Chrome 9 years ago
Lukas Reschke d50e7ee36c
Remove reading PATH_INFO from server variable 9 years ago
Lukas Reschke b53ea18ea5
Match only for actual session cookie 10 years ago
Lukas Reschke a299fa38a9
[master] Port Same-Site Cookies to master 10 years ago
Joas Schilling 94ad54ec9b Move tests/ to PSR-4 (#24731) 10 years ago
Joas Schilling 9eade36ae5
Fix namespaces in AppFramework tests 10 years ago