Commit Graph

87 Commits (7620d230df8756a9c439c4acbd756fbeae9345f7)

Author SHA1 Message Date
Ferdinand Thiessen 7620d230df
fix(Request): Catch exceptions in `isTrustedProxy` 2 years ago
Joas Schilling aa5f037af7
chore: apply changes from Nextcloud coding standards 1.1.1 2 years ago
Joas Schilling 2fa78f6245
Reverse X-Forwarded-For list to read the correct proxy remote address 2 years ago
Hamid Dehnavi ea06cf2f39 Convert isset ternary to null coalescing operator 2 years ago
Faraz Samapoor e7cc7653b8 Refactors "strpos" calls in lib/private to improve code readability. 3 years ago
Côme Chilliet 426c0341ff
Use typed version of IConfig::getSystemValue as much as possible 3 years ago
Julius Härtl dc3916e27c
fix: Only get params from PUT content if possible 3 years ago
Côme Chilliet f5c361cf44
composer run cs:fix 3 years ago
Côme Chilliet cf508c1e47 Use strict typing in base.php 3 years ago
Artur Neumann 81f2857f34
check if params given to API are really an array 3 years ago
Stanimir Bozhilov b44befa881 Move JSON content type regex to IRequest and make it a const 3 years ago
Stanimir Bozhilov 46c10c77e1 Fix the JSON content type regex to match all MIME types 3 years ago
Stanimir Bozhilov d80f8f6c82 Type hint JSON content type regex and use preg_match less 3 years ago
Stanimir Bozhilov f286a9d6ac Use regex for all JSON-related content types 3 years ago
Stanimir Bozhilov 0ace70488a Treat application/json and application/scim+json in same if-block 3 years ago
Stanimir Bozhilov f0dbe1148a Add support for application/scim+json content type 3 years ago
Simon Leiner 09362eaeaa
Support specifying IPv6 proxies in CIDR notation 3 years ago
luz paz 368f83095d Fix typos in lib/private subdirectory 3 years ago
Côme Chilliet de5b7f260f
Trying without the use 4 years ago
Côme Chilliet 9132ed8ef1
Use sabre function directly rather than duplicating it 4 years ago
Joas Schilling 07a9f34385
Extract request id handling to dedicated class so it can be injected manually 4 years ago
Carl Schwan 6312c0df69
Check style update 4 years ago
Côme Chilliet 113756db30
Fix ArrayAccess and JsonSerializable return types 4 years ago
J0WI 3b656446af Introduce ISecureRandom::CHAR_ALPHANUMERIC 5 years ago
John Molakvoæ (skjnldsv) 215aef3cbd
Update php licenses 5 years ago
Lukas Reschke a521ed874c Remove unused constants 5 years ago
dependabot-preview[bot] eb502c02ff
Bump nextcloud/coding-standard from 0.3.0 to 0.5.0 5 years ago
Christoph Wurst 9ce3ea3368
Update license headers 5 years ago
Christoph Wurst d89a75be0b
Update all license headers for Nextcloud 21 5 years ago
J0WI 331f30f085 Fix IPv6 localhost regex 5 years ago
Daniel Kesselberg 8ebd31d686
Make $vars and $secureRandom required. 5 years ago
Christoph Wurst d9015a8c94
Format code to a single space around binary operators 5 years ago
J0WI 68ce17e59b Unify links to php.net 5 years ago
Christoph Wurst 2a054e6c04
Update the license headers for Nextcloud 20 5 years ago
Georg Ehrke 3bdfb380fc
Fix PHPDoc of IRequest::getHeader 6 years ago
Joas Schilling 74a9cadc50
Fix IPv6 remote addresses from X_FORWARDED_FOR headers before validating 6 years ago
Christoph Wurst cb057829f7
Update license headers for 19 6 years ago
Christoph Wurst 734c62bee0
Format code according to PSR2 6 years ago
Christoph Wurst 28f8eb5dba
Add visibility to all constants 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 3a415e4139
Remove space between switch case and colon 6 years ago
Christoph Wurst 85e369cddb
Fix multiline comments 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
Christoph Wurst 5bf3d1bb38
Update license headers 6 years ago
Julius Härtl a055d8ddf9
Always return overwritehost if configured 6 years ago
Daniel Kesselberg fdf4e1ebb2
Remove duplicate code 6 years ago
b108@volgograd bf167ad3ac Remove duplicate functionality 7 years ago
Roeland Jago Douma 514426e27d
Only trust the X-FORWARDED-HOST header for trusted proxies 7 years ago