From cdef00de3e9c7381b8d98427c6349977a83d7797 Mon Sep 17 00:00:00 2001 From: gustav_delius Date: Sat, 30 Oct 2004 22:51:12 +0000 Subject: [PATCH] Merged from STABLE. Fixed a bug that allowed teachers to upload images of arbitrary size --- lib/editor/popups/insert_image.php | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/lib/editor/popups/insert_image.php b/lib/editor/popups/insert_image.php index 55b59cd0c4..839196f306 100644 --- a/lib/editor/popups/insert_image.php +++ b/lib/editor/popups/insert_image.php @@ -2,12 +2,14 @@ include("../../../config.php"); - require_variable($id); + require_variable($id); if (!$course = get_record("course", "id", $id)) { $course->fullname = ""; // Just to keep display happy, though browsing may fail } + $upload_max_filesize = get_max_upload_file_size($CFG->maxbytes); + ?> @@ -266,11 +268,11 @@ form { margin-bottom: 0px; margin-top: 0px; } print ""; }?>
wwwroot."/lib/editor/coursefiles.php?usecheckboxes=true&id=".$course->id."\" style=\"width: 100%; height: 200px;\">": - "";?> + "": + "";?> :
- + @@ -305,10 +307,10 @@ form { margin-bottom: 0px; margin-top: 0px; }
  : - : -
-
- + : +
+
+
- + -- 2.39.5