summaryrefslogtreecommitdiffstats
path: root/lib/archive/tar.php
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2012-08-19 05:04:58 +0200
committerRobin Appelman <icewind@owncloud.com>2012-08-19 05:04:58 +0200
commit3da1339cd84a386064a74f0d1c8c22a7b207bf6c (patch)
treeb0dd9fa9a6045a2012950d7a19068bcd61e0c53a /lib/archive/tar.php
parent154ce0f68ddd7b1d2a173515cf3c3ceab3611a48 (diff)
downloadnextcloud-server-3da1339cd84a386064a74f0d1c8c22a7b207bf6c.tar.gz
nextcloud-server-3da1339cd84a386064a74f0d1c8c22a7b207bf6c.zip
fix error when adding string data to an archive
Diffstat (limited to 'lib/archive/tar.php')
-rw-r--r--lib/archive/tar.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/archive/tar.php b/lib/archive/tar.php
index 944a0ac4ba4..c8b3d5e6266 100644
--- a/lib/archive/tar.php
+++ b/lib/archive/tar.php
@@ -79,7 +79,7 @@ class OC_Archive_TAR extends OC_Archive{
if($this->fileExists($path)){
$this->remove($path);
}
- if(file_exists($source)){
+ if($source and $source[0]=='/' and file_exists($source)){
$header=array();
$dummy='';
$this->tar->_openAppend();