aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2015-03-05 15:54:07 -0800
committerfriendica <info@friendica.com>2015-03-05 15:54:07 -0800
commite73d0ee418564eb32517f86930c78384ca3bd52d (patch)
tree526a396b3bca613c581cd7fbd35a26a94420606f
parentec5c989352c91e050d306d234f638bb3fc7f6f6d (diff)
parent202f3c5dc151346fea29beaadef8d86f7a0a0573 (diff)
downloadvolse-hubzilla-e73d0ee418564eb32517f86930c78384ca3bd52d.tar.gz
volse-hubzilla-e73d0ee418564eb32517f86930c78384ca3bd52d.tar.bz2
volse-hubzilla-e73d0ee418564eb32517f86930c78384ca3bd52d.zip
Merge https://github.com/friendica/red into pending_merge
-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'])
);
}