diff options
author | Klaus <Klaus.Weidenbach@gmx.net> | 2015-03-06 00:21:32 +0100 |
---|---|---|
committer | Klaus <Klaus.Weidenbach@gmx.net> | 2015-03-06 00:21:32 +0100 |
commit | 2b45bf190869f8ad489c2f0e82597b7ffb315f0f (patch) | |
tree | 317c4dda61b7fcdde61791d3cdfa2c0566d683a8 /include | |
parent | ba49060d0fe367fc07cacfbbbaa3320a224282c4 (diff) | |
download | volse-hubzilla-2b45bf190869f8ad489c2f0e82597b7ffb315f0f.tar.gz volse-hubzilla-2b45bf190869f8ad489c2f0e82597b7ffb315f0f.tar.bz2 volse-hubzilla-2b45bf190869f8ad489c2f0e82597b7ffb315f0f.zip |
RedDAV: fix renaming files.
How can no one have spot this bug yet?!? Is no one using WebDAV?
Took me 2 days to figure out it was not my RedDAV rewrite, but that this should have never worked. :-!
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']) ); } |