diff options
author | scolebrook <scolebrook@mac.com> | 2014-09-15 12:38:01 -0400 |
---|---|---|
committer | Lukas Reschke <lukas@owncloud.com> | 2014-09-16 13:25:44 +0200 |
commit | f31e4066de98863602530f65f66ac27fa8dc5c62 (patch) | |
tree | a0d2743e069c6a7a44e4df3baac037bbb466da6c | |
parent | 61b040cbe89d010a586fcd95ff8a65e40e4f0f44 (diff) | |
download | nextcloud-server-f31e4066de98863602530f65f66ac27fa8dc5c62.tar.gz nextcloud-server-f31e4066de98863602530f65f66ac27fa8dc5c62.zip |
Conceal or display SabreDAV version number in browser and http response headers.
-rw-r--r-- | lib/private/connector/sabre/server.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/private/connector/sabre/server.php b/lib/private/connector/sabre/server.php index 43c3464f1ca..137082eea67 100644 --- a/lib/private/connector/sabre/server.php +++ b/lib/private/connector/sabre/server.php @@ -38,6 +38,14 @@ class OC_Connector_Sabre_Server extends Sabre\DAV\Server { */ private $ignoreRangeHeader = false; + /** + * @see \Sabre\DAV\Server + */ + public function __construct($treeOrNode = null) { + parent::__construct($treeOrNode); + self::$exposeVersion = false; + } + public function getRequestUri() { if (!is_null($this->overLoadedUri)) { |