diff options
author | Stanimir Bozhilov <stanimir@audriga.com> | 2022-09-26 11:51:44 +0200 |
---|---|---|
committer | Stanimir Bozhilov <stanimir@audriga.com> | 2022-09-26 11:51:44 +0200 |
commit | 46c10c77e1d5f1b46e665995f9030ccd74283af7 (patch) | |
tree | 70d83b76a71a868d216a8ef6167bcdc713dbc935 /lib/private/AppFramework | |
parent | d80f8f6c823c531d2c54110c7d66b802a54a86da (diff) | |
download | nextcloud-server-46c10c77e1d5f1b46e665995f9030ccd74283af7.tar.gz nextcloud-server-46c10c77e1d5f1b46e665995f9030ccd74283af7.zip |
Fix the JSON content type regex to match all MIME types
Signed-off-by: Stanimir Bozhilov <stanimir@audriga.com>
Diffstat (limited to 'lib/private/AppFramework')
-rw-r--r-- | lib/private/AppFramework/Http/Request.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/AppFramework/Http/Request.php b/lib/private/AppFramework/Http/Request.php index ee569273a3f..e4219cefd70 100644 --- a/lib/private/AppFramework/Http/Request.php +++ b/lib/private/AppFramework/Http/Request.php @@ -108,7 +108,7 @@ class Request implements \ArrayAccess, \Countable, IRequest { protected $contentDecoded = false; /** @var string */ - protected string $jsonContentTypeRegex = '/application\/(\w+\+)?json/'; + protected string $jsonContentTypeRegex = '{^application/(?:[a-z0-9.-]+\+)?json\b}'; /** * @param array $vars An associative array with the following optional values: |