Home
Documentation
Downloads
Demo
Tracker
Development
Translation
Moodle.net
Search
projects
/
moodle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
051d59e
)
Merge branch 'MDL-35983_equella_filename_dev' of git://github.com/dongsheng/moodle
author
Dan Poltawski
<dan@moodle.com>
Mon, 8 Dec 2014 14:23:49 +0000
(14:23 +0000)
committer
Dan Poltawski
<dan@moodle.com>
Mon, 8 Dec 2014 14:23:49 +0000
(14:23 +0000)
repository/equella/callback.php
patch
|
blob
|
blame
|
history
diff --git
a/repository/equella/callback.php
b/repository/equella/callback.php
index
e8f25c9
..
dcc4838
100644
(file)
--- a/
repository/equella/callback.php
+++ b/
repository/equella/callback.php
@@
-36,7
+36,11
@@
if (isset($info->url)) {
}
$filename = '';
-if (isset($info->name)) {
+// Use $info->filename if exists, $info->name is a display name,
+// it may not have extension
+if (isset($info->filename)) {
+ $filename = s(clean_param($info->filename, PARAM_FILE));
+} else if (isset($info->name)) {
$filename = s(clean_param($info->name, PARAM_FILE));
}