MDL-57002 repository_webdav: Use default temporary file name

The WebDAV library does not like when there are UTF-8 characters
in the temporary file name. It changes the path but does not return
it, so the file ends up being saved somewhere unknown. As we do not
need the file name at all, we let repository::prepare_file()
generate one.
This commit is contained in:
Frederic Massart 2016-11-17 14:23:15 +08:00
parent b4d6669dd0
commit 538ce414a5
No known key found for this signature in database
GPG Key ID: AC343CE142B12FB9

View File

@ -72,7 +72,7 @@ class repository_webdav extends repository {
}
public function get_file($url, $title = '') {
$url = urldecode($url);
$path = $this->prepare_file($title);
$path = $this->prepare_file();
if (!$this->dav->open()) {
return false;
}