mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-11-29 08:56:03 +00:00
Fix raw_post handling for other front-ends.
Signed-off-by: Andrew McMillan <andrew@morphoss.com>
This commit is contained in:
1 parent
ba1e80d185
commit
d83d7a0ef2
2 files changed
+4
-2
No files matched your search
+2
-1
@@ -41,13 +41,14 @@ function logRequestHeaders() {
|
||||
dbg_error_log( "LOG ", "******************** Request ********************" );
|
||||
|
||||
// Log the request in all it's gory detail.
|
||||
$lines = preg_split( '#[\r\n]+#', file_get_contents( 'php://input'));
|
||||
$lines = preg_split( '#[\r\n]+#', $c->raw_post );
|
||||
foreach( $lines AS $v ) {
|
||||
dbg_error_log( "LOG request", "-->%s", $v );
|
||||
}
|
||||
unset($lines);
|
||||
}
|
||||
|
||||
if ( !isset($c->raw_post) ) $c->raw_post = file_get_contents( 'php://input');
|
||||
if ( (isset($c->dbg['ALL']) && $c->dbg['ALL']) || (isset($c->dbg['request']) && $c->dbg['request']) )
|
||||
logRequestHeaders();
|
||||
|
||||
|
||||
Reference in new issue
Block a user