Update uri.php
This commit is contained in:
parent
f84f194709
commit
fa2a1743d6
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue
Block a user