mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-09-28 12:26:23 +02:00
FIX: Avoid PHP 5.6 deprecation with access to HTTP_RAW_POST_DATA. Fixed #4511
PHP 5.6 doesn't like access to HTTP_RAW_POST_DATA and recommends the use of php://input, which is already supported by this code. I've just removed the deprecated calls.
This commit is contained in:
parent
fa4942f3b5
commit
a19fe39301
8
thirdparty/tinymce-spellchecker/rpc.php
vendored
8
thirdparty/tinymce-spellchecker/rpc.php
vendored
@ -24,14 +24,6 @@ $raw = "";
|
|||||||
if (isset($_POST["json_data"]))
|
if (isset($_POST["json_data"]))
|
||||||
$raw = getRequestParam("json_data");
|
$raw = getRequestParam("json_data");
|
||||||
|
|
||||||
// Try globals array
|
|
||||||
if (!$raw && isset($_GLOBALS) && isset($_GLOBALS["HTTP_RAW_POST_DATA"]))
|
|
||||||
$raw = $_GLOBALS["HTTP_RAW_POST_DATA"];
|
|
||||||
|
|
||||||
// Try globals variable
|
|
||||||
if (!$raw && isset($HTTP_RAW_POST_DATA))
|
|
||||||
$raw = $HTTP_RAW_POST_DATA;
|
|
||||||
|
|
||||||
// Try stream
|
// Try stream
|
||||||
if (!$raw) {
|
if (!$raw) {
|
||||||
if (!function_exists('file_get_contents')) {
|
if (!function_exists('file_get_contents')) {
|
||||||
|
Loading…
Reference in New Issue
Block a user