mirror of
https://we.phorge.it/source/phorge.git
synced 2025-01-10 23:01:04 +01:00
Fix $_SERVER['CONTENT_TYPE'] trigger a NOTICE error
See T1762. Reviewed by: epriestley
This commit is contained in:
parent
7ed8b6d7fa
commit
065e977b3c
1 changed files with 4 additions and 1 deletions
|
@ -57,7 +57,10 @@ final class PhabricatorRequestOverseer {
|
|||
//
|
||||
// NOTE: We use strncmp() because the actual content type may be something
|
||||
// like "multipart/form-data; boundary=...".
|
||||
$content_type = $_SERVER['CONTENT_TYPE'];
|
||||
//
|
||||
// NOTE: Chrome sometimes omits this header, see some discussion in T1762
|
||||
// and http://code.google.com/p/chromium/issues/detail?id=6800
|
||||
$content_type = idx($_SERVER, 'CONTENT_TYPE', '');
|
||||
|
||||
$parsed_types = array(
|
||||
'application/x-www-form-urlencoded',
|
||||
|
|
Loading…
Reference in a new issue