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

Moving a multibyte named file on site file folder changes the file name.

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 1.8
    • Fix Version/s: None
    • Component/s: Other
    • Labels:
      None
    • Affected Branches:
      MOODLE_18_STABLE

      Description

      Put following two settings on config.php to use multibyte language file name.
      $CFG->unicodedb = true;
      $CFG->unicodecleanfilename = true;

      When we move a multibyte named file on site file folder, the file name is changed like "____.txt".
      This is because php function basename() is not accepted by mulibyte named files.

      To fix this problem, it's better to change the function basename() of /files/index.php to original one as below.

      ex.
      $shortfile = preg_replace('/^.+\\\\\\//', '', $file);

      Please see index.php.patch for more detail.

        Gliffy Diagrams

          Activity

          mits Mitsuhiro Yoshida created issue -
          skodak Petr Skoda made changes -
          Field Original Value New Value
          Assignee Martin Dougiamas [ dougiamas ] Petr ?koda [ skodak ]
          skodak Petr Skoda made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Resolution Won't Fix [ 2 ]
          dougiamas Martin Dougiamas made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          QA Assignee nobody
          dougiamas Martin Dougiamas made changes -
          Workflow jira [ 19120 ] MDL Workflow [ 54755 ]
          dougiamas Martin Dougiamas made changes -
          Workflow MDL Workflow [ 54755 ] MDL Full Workflow [ 83870 ]

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: