mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-09-23 06:39:18 +00:00
Check we have actually got an XML body if we got a content-type XML.
This commit is contained in:
parent
da6e9a07e2
commit
1e717bf1fe
@ -489,7 +489,13 @@ EOSQL;
|
|||||||
xml_parser_set_option ( $xml_parser, XML_OPTION_CASE_FOLDING, 0 );
|
xml_parser_set_option ( $xml_parser, XML_OPTION_CASE_FOLDING, 0 );
|
||||||
xml_parse_into_struct( $xml_parser, $this->raw_post, $this->xml_tags );
|
xml_parse_into_struct( $xml_parser, $this->raw_post, $this->xml_tags );
|
||||||
xml_parser_free($xml_parser);
|
xml_parser_free($xml_parser);
|
||||||
dbg_error_log( "caldav", " Parsed incoming XML request body." );
|
if ( count($this->xml_tags) ) {
|
||||||
|
dbg_error_log( "caldav", " Parsed incoming XML request body." );
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
$this->xml_tags = null;
|
||||||
|
dbg_error_log( "ERROR", "Incoming request sent content-type XML with no XML request body." );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user