Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-68275

Avatar max size should use $CFG->userquota instead of $CFG->maxbytes

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: 3.8.2
    • Fix Version/s: None
    • Component/s: User management
    • Labels:
    • Affected Branches:
      MOODLE_38_STABLE

      Description

      Hello,

      In user/edit.php (line 165), we have

      $filemanageroptions = array('maxbytes' => $CFG->maxbytes,
      {{ 'subdirs' => 0,}}
      {{ 'maxfiles' => 1,}}
      {{ 'accepted_types' => 'web_image');}}

      -This means that users can upload avatar of the maximal size authorizes in moodle. This can lead to abuse. What about using the $CFG>userquota which can be controlled.

       

      What do you guys think about it?

       

      Best regards.

       

      Noel Dieschburg

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            ndieschburg Noel Dieschburg
            Participants:
            Component watchers:
            Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: