summaryrefslogtreecommitdiffstats
path: root/lib/archive/zip.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/archive/zip.php')
-rw-r--r--lib/archive/zip.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/archive/zip.php b/lib/archive/zip.php
index b2d6674d639..c1a5c35738b 100644
--- a/lib/archive/zip.php
+++ b/lib/archive/zip.php
@@ -36,7 +36,7 @@ class OC_Archive_ZIP extends OC_Archive{
* @return bool
*/
function addFile($path,$source=''){
- if(file_exists($source)){
+ if($source and $source[0]=='/' and file_exists($source)){
$result=$this->zip->addFile($source,$path);
}else{
$result=$this->zip->addFromString($path,$source);