aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private
diff options
context:
space:
mode:
authorStanimir Bozhilov <stanimir@audriga.com>2022-09-26 11:51:44 +0200
committerStanimir Bozhilov <stanimir@audriga.com>2022-09-26 11:51:44 +0200
commit46c10c77e1d5f1b46e665995f9030ccd74283af7 (patch)
tree70d83b76a71a868d216a8ef6167bcdc713dbc935 /lib/private
parentd80f8f6c823c531d2c54110c7d66b802a54a86da (diff)
downloadnextcloud-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')
-rw-r--r--lib/private/AppFramework/Http/Request.php2
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: