Skip to content

Commit

Permalink
Bug: 14040 Webdav requests should be session-less as well.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrubinsk committed Jul 13, 2015
1 parent dd1e885 commit 11c1961
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions horde/rpc.php
Expand Up @@ -43,6 +43,7 @@
} elseif (!empty($_SERVER['PATH_INFO']) ||
in_array($_SERVER['REQUEST_METHOD'], array('DELETE', 'PROPFIND', 'PUT', 'OPTIONS', 'REPORT'))) {
$serverType = 'Webdav';
$session_control = 'none';
} elseif (!empty($_SERVER['CONTENT_TYPE'])) {
if (strpos($_SERVER['CONTENT_TYPE'], 'application/vnd.syncml+xml') !== false) {
$serverType = 'Syncml';
Expand All @@ -68,6 +69,7 @@
$serverType = 'Phpgw';
} else {
$serverType = 'Webdav';
$session_control = 'none';
}

/* Initialize Horde environment. */
Expand Down

0 comments on commit 11c1961

Please sign in to comment.