MDL-58372 repository_webdav: Explicitly pass some filename

Not passing anything triggers PHP 7.1 "Too few arguments" exception.
This commit is contained in:
Jan Dageförde
2017-04-26 11:28:52 +02:00
parent 4b7b979d39
commit 50e53bb6ea
+2 -1
View File
@@ -72,7 +72,8 @@ class repository_webdav extends repository {
}
public function get_file($url, $title = '') {
$url = urldecode($url);
$path = $this->prepare_file();
// Prepare a file with an arbitrary name - cannot be $title because of special chars (cf. MDL-57002).
$path = $this->prepare_file(uniqid());
if (!$this->dav->open()) {
return false;
}