[Pkg-owncloud-commits] [php-sabredav] 50/75: Unittest for #610

David Prévot taffit at moszumanska.debian.org
Thu Feb 26 18:51:53 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository php-sabredav.

commit 5e0c5fa732e6d181e841245ef45be4df460c0792
Author: Evert Pot <me at evertpot.com>
Date:   Mon Feb 23 11:57:53 2015 -0500

    Unittest for #610
---
 tests/Sabre/DAV/Browser/PluginTest.php | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/tests/Sabre/DAV/Browser/PluginTest.php b/tests/Sabre/DAV/Browser/PluginTest.php
index b1ea646..f18b420 100644
--- a/tests/Sabre/DAV/Browser/PluginTest.php
+++ b/tests/Sabre/DAV/Browser/PluginTest.php
@@ -144,4 +144,14 @@ class PluginTest extends DAV\AbstractServer{
         $this->assertEquals(404, $this->response->getStatus(), 'Error: ' . $this->response->body);
 
     }
+
+    function testGetAssetEscapeBasePath() {
+
+        $request = new HTTP\Request('GET', '/?sabreAction=asset&assetName=./../assets/favicon.ico');
+        $this->server->httpRequest = $request;
+        $this->server->exec();
+
+        $this->assertEquals(404, $this->response->getStatus(), 'Error: ' . $this->response->body);
+
+    }
 }

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/php-sabredav.git



More information about the Pkg-owncloud-commits mailing list