From ed05c5f852a30749b68bf95e87b17d992406107d Mon Sep 17 00:00:00 2001 From: cdujeu Date: Mon, 16 Dec 2013 15:31:46 +0100 Subject: [PATCH] Make sure CREATE is defined, otherwise it make a DB error on workspace creation. Use AJXP_Utils::safeParseUrl() --- .../access.sftp_psl/class.sftpPSLAccessWrapper.php | 4 ++-- core/src/plugins/access.sftp_psl/manifest.xml | 10 ++++++---- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/core/src/plugins/access.sftp_psl/class.sftpPSLAccessWrapper.php b/core/src/plugins/access.sftp_psl/class.sftpPSLAccessWrapper.php index 6780278767..0f4408410c 100644 --- a/core/src/plugins/access.sftp_psl/class.sftpPSLAccessWrapper.php +++ b/core/src/plugins/access.sftp_psl/class.sftpPSLAccessWrapper.php @@ -44,7 +44,7 @@ public static function isRemote() */ protected static function initPath($path, $streamType = '', $storeOpenContext = false, $skipZip = true) { - $url = parse_url($path); + $url = AJXP_Utils::safeParseUrl($path); $repoId = $url["host"]; $path = $url["path"]; @@ -168,7 +168,7 @@ public function url_stat($path, $flags) { $realPath = self::initPath($path); $stat = @stat($realPath); - $parts = parse_url($path); + $parts = AJXP_Utils::safeParseUrl($path); $repoObject = ConfService::getRepositoryById($parts["host"]); AbstractAccessDriver::fixPermissions($stat, $repoObject, array($this, "detectRemoteUserId")); diff --git a/core/src/plugins/access.sftp_psl/manifest.xml b/core/src/plugins/access.sftp_psl/manifest.xml index 3abeb5fa39..299c7752f3 100644 --- a/core/src/plugins/access.sftp_psl/manifest.xml +++ b/core/src/plugins/access.sftp_psl/manifest.xml @@ -25,6 +25,7 @@ + - - - @@ -59,7 +57,11 @@ - + + + + +