aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorRedMatrix <info@friendica.com>2015-03-06 10:26:04 +1100
committerRedMatrix <info@friendica.com>2015-03-06 10:26:04 +1100
commit202f3c5dc151346fea29beaadef8d86f7a0a0573 (patch)
tree1cf48219b511a0ab423778a957bbf92e4f28d475 /include
parent9bbf509ede626223c53a3cf22191559aae4815d1 (diff)
parent2b45bf190869f8ad489c2f0e82597b7ffb315f0f (diff)
downloadvolse-hubzilla-202f3c5dc151346fea29beaadef8d86f7a0a0573.tar.gz
volse-hubzilla-202f3c5dc151346fea29beaadef8d86f7a0a0573.tar.bz2
volse-hubzilla-202f3c5dc151346fea29beaadef8d86f7a0a0573.zip
Merge pull request #918 from dawnbreak/master
RedDAV: fix renaming files.
Diffstat (limited to 'include')
-rw-r--r--include/RedDAV/RedFile.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/RedDAV/RedFile.php b/include/RedDAV/RedFile.php
index 9ce6490a7..b7aa5473a 100644
--- a/include/RedDAV/RedFile.php
+++ b/include/RedDAV/RedFile.php
@@ -80,7 +80,8 @@ class RedFile extends DAV\Node implements DAV\IFile {
$newName = str_replace('/', '%2F', $newName);
$r = q("UPDATE attach SET filename = '%s' WHERE hash = '%s' AND id = %d",
- dbesc($this->data['filename']),
+ dbesc($newName),
+ dbesc($this->data['hash']),
intval($this->data['id'])
);
}