Skip to content
Permalink
Browse files

MDL-54756 moodle_url: remove dangerous trim from make_file_url

This was a regression caused by MDL-50268. It broke qtype_stack.
  • Loading branch information...
timhunt committed May 27, 2016
1 parent b1b097e commit 330216eb8a2fc770c9ac4d1639d4df73d7e29aba
Showing with 0 additions and 1 deletion.
  1. +0 −1 lib/weblib.php
@@ -760,7 +760,6 @@ public static function make_file_url($urlbase, $path, $forcedownload = false) {
if ($forcedownload) {
$params['forcedownload'] = 1;
}
$path = rtrim($path, '/');
$url = new moodle_url($urlbase, $params);
$url->set_slashargument($path);
return $url;

0 comments on commit 330216e

Please sign in to comment.
You can’t perform that action at this time.