diff options
author | friendica <info@friendica.com> | 2015-03-05 15:54:07 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2015-03-05 15:54:07 -0800 |
commit | e73d0ee418564eb32517f86930c78384ca3bd52d (patch) | |
tree | 526a396b3bca613c581cd7fbd35a26a94420606f /include | |
parent | ec5c989352c91e050d306d234f638bb3fc7f6f6d (diff) | |
parent | 202f3c5dc151346fea29beaadef8d86f7a0a0573 (diff) | |
download | volse-hubzilla-e73d0ee418564eb32517f86930c78384ca3bd52d.tar.gz volse-hubzilla-e73d0ee418564eb32517f86930c78384ca3bd52d.tar.bz2 volse-hubzilla-e73d0ee418564eb32517f86930c78384ca3bd52d.zip |
Merge https://github.com/friendica/red into pending_merge
Diffstat (limited to 'include')
-rw-r--r-- | include/RedDAV/RedFile.php | 3 |
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']) ); } |