Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MDL-37942 Images with non-alphanumeric chars in file name won't export

  • Loading branch information...
commit 17ff23d7436f8546f00b46fc5d530d522af0eff5 1 parent 373a8e0
@jason-platts jason-platts authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/portfoliolib.php
2  lib/portfoliolib.php
@@ -1250,7 +1250,7 @@ function portfolio_rewrite_pluginfile_url_callback($contextid, $component, $file
$filename = array_pop($bits);
$filepath = implode('/', $bits);
- if (!$file = $fs->get_file($contextid, $component, $filearea, $itemid, $filepath, $filename)) {
+ if (!$file = $fs->get_file($contextid, $component, $filearea, $itemid, $filepath, urldecode($filename))) {
debugging("Couldn't find a file from the embedded path info context $contextid component $component filearea $filearea itemid $itemid filepath $filepath name $filename");
return $matches;
Please sign in to comment.
Something went wrong with that request. Please try again.