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
|
patch
| inline |
side by side
(parent:
29c6980
)
MDL-14591 - added security in file serving in pull portfolio plugins
author
mjollnir_
<mjollnir_>
Tue, 16 Sep 2008 14:17:32 +0000
(14:17 +0000)
committer
mjollnir_
<mjollnir_>
Tue, 16 Sep 2008 14:17:32 +0000
(14:17 +0000)
portfolio/file.php
patch
|
blob
|
blame
|
history
diff --git
a/portfolio/file.php
b/portfolio/file.php
index
e92efc3
..
4dce6e4
100644
(file)
--- a/
portfolio/file.php
+++ b/
portfolio/file.php
@@
-7,6
+7,7
@@
require_once($CFG->libdir . '/filelib.php');
$id = required_param('id', PARAM_INT);
$exporter = portfolio_exporter::rewaken_object($id);
+$exporter->verify_rewaken();
if ($exporter->get('instance')->is_push()) {
throw new portfolio_export_exception($exporter, 'filedenied', 'portfolio');