Update uri.php

This commit is contained in:
Namhyeon Go 2019-06-06 22:33:52 +09:00 committed by GitHub
parent f84f194709
commit fa2a1743d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -73,6 +73,7 @@ if(!check_function_exists("read_requests")) {
"_RAW" => file_get_contents("php://input"),
"_JSON" => false,
"_SEAL" => false,
"_CSPT" => false,
"_SERVER" => array_map("make_safe_argument", get_array($_SERVER)),
);
@ -105,6 +106,13 @@ if(!check_function_exists("read_requests")) {
if(array_key_equals("serialized", $options, true)) {
$requests['_SEAL'] = unserialize($requests['_RAW']);
}
// check if cspt(catsplit) request
if(array_key_equals("catsplit", $options, true)) {
if(loadHelper("catsplit.format")) {
$requests['_CSPT'] = catsplit_decode($requests['_RAW']);
}
}
// with security module
$protect_methods = array("_ALL", "_GET", "_POST", "_JSON", "_SEAL", "_MIXED");