mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-05-19 01:34:26 +00:00
Compare commits
2 Commits
eabd7d3ae0
...
35c8d78a15
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
35c8d78a15 | ||
|
|
5920fe1efe |
@ -119,12 +119,13 @@ class CalDAVClient {
|
||||
*/
|
||||
function ParseResponse( $response ) {
|
||||
$pos = strpos($response, '<?xml');
|
||||
$epos = strrpos($response, '>');
|
||||
if ($pos === false) {
|
||||
$this->httpResponse = trim($response);
|
||||
}
|
||||
else {
|
||||
$this->httpResponse = trim(substr($response, 0, $pos));
|
||||
$this->xmlResponse = trim(substr($response, $pos));
|
||||
$this->xmlResponse = trim(substr($response, $pos, $epos-$pos+1));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user