[Pkg-owncloud-commits] [php-sabredav] 46/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 231a538acd1f988b0f8772776bc716eec7b49bf2
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 7d5a1a1..fd781c0 100644
--- a/tests/Sabre/DAV/Browser/PluginTest.php
+++ b/tests/Sabre/DAV/Browser/PluginTest.php
@@ -145,4 +145,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