mirror of
https://github.com/moodle/moodle.git
synced 2025-01-17 21:49:15 +01:00
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:
parent
b4d6669dd0
commit
538ce414a5
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user