[Pkg-owncloud-commits] [owncloud] 65/73: fix OC_Filesystem::isValidPath when using \ instead of / in paths

David Prévot taffit at alioth.debian.org
Fri Nov 8 23:09:13 UTC 2013


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

taffit pushed a commit to annotated tag v4.0.10
in repository owncloud.

commit 6540c0fc63347e8145534e09419e0f7ff4fd2e3a
Author: Robin Appelman <icewind at owncloud.com>
Date:   Fri Nov 2 20:15:00 2012 +0100

    fix OC_Filesystem::isValidPath when using \ instead of / in paths
---
 lib/filesystem.php |    1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/filesystem.php b/lib/filesystem.php
index 372b611..ea415b0 100644
--- a/lib/filesystem.php
+++ b/lib/filesystem.php
@@ -361,6 +361,7 @@ class OC_Filesystem{
 	 * @return bool
 	 */
 	static public function isValidPath($path){
+		$path = str_replace('\\', '/', $path);
 		if(!$path || $path[0]!=='/'){
 			$path='/'.$path;
 		}

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



More information about the Pkg-owncloud-commits mailing list