aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorscolebrook <scolebrook@mac.com>2014-09-15 12:38:01 -0400
committerLukas Reschke <lukas@owncloud.com>2014-09-16 13:25:44 +0200
commitf31e4066de98863602530f65f66ac27fa8dc5c62 (patch)
treea0d2743e069c6a7a44e4df3baac037bbb466da6c
parent61b040cbe89d010a586fcd95ff8a65e40e4f0f44 (diff)
downloadnextcloud-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.php8
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)) {