Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit ced8b30bd566fc808ef69fbcd6d7c602481d81fd 1 parent 42f64a0
@jason-platts jason-platts authored danpoltawski committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/portfoliolib.php
View
2  lib/portfoliolib.php
@@ -1260,7 +1260,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;
}

0 comments on commit ced8b30

Please sign in to comment.
Something went wrong with that request. Please try again.