From 7126772325f5277bd1c5110e7595fdcbfa2b2bc8 Mon Sep 17 00:00:00 2001 From: Dongsheng Cai Date: Fri, 13 Aug 2010 06:53:28 +0000 Subject: [PATCH] "MDL-23786, added sesskey and added s() filter" --- lib/form/editor.php | 3 +- lib/form/filemanager.php | 1 + lib/form/filepicker.php | 1 + repository/draftfiles_manager.php | 33 +++++++++------ repository/filepicker.php | 69 +++++++++++++++++-------------- 5 files changed, 62 insertions(+), 45 deletions(-) diff --git a/lib/form/editor.php b/lib/form/editor.php index 5efa5af49633b..95af0d1532367 100644 --- a/lib/form/editor.php +++ b/lib/form/editor.php @@ -233,7 +233,8 @@ function toHtml() { 'maxbytes'=>$maxbytes, 'maxfiles'=>$maxfiles, 'ctx_id'=>$ctx->id, - 'course'=>$PAGE->course->id + 'course'=>$PAGE->course->id, + 'sesskey'=>sesskey(), )); $str .= '