Skip to content

Commit

Permalink
MDL-58372 repository_webdav: Explicitly pass some filename
Browse files Browse the repository at this point in the history
Not passing anything triggers PHP 7.1 "Too few arguments" exception.
  • Loading branch information
Dagefoerde committed Apr 26, 2017
1 parent 4b7b979 commit 50e53bb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion repository/webdav/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ public function check_login() {
}
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;
}
Expand Down

0 comments on commit 50e53bb

Please sign in to comment.