Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge branch 'MDL-36754-master' of git://github.com/andrewnicols/moodle
  • Loading branch information
David Monllao committed Aug 14, 2018
2 parents 3ff9233 + 2e8d476 commit 8e6c2ce
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/filelib.php
Expand Up @@ -481,6 +481,7 @@ function file_rewrite_pluginfile_urls($text, $file, $contextid, $component, $fil
$finalfile = basename($file);
$tokenfile = "token{$finalfile}";
$file = substr($file, 0, strlen($file) - strlen($finalfile)) . $tokenfile;
$baseurl = "{$CFG->wwwroot}/{$file}";

if (!$CFG->slasharguments) {
$baseurl .= "?token={$token}&file=";
Expand Down

0 comments on commit 8e6c2ce

Please sign in to comment.