Repository navigation
v0.9.4
Moodle CLI 0.9.4
A fix for moodle submit, which refused every file on assignments that do not restrict file types.
Fixes
moodle submitaccepts any file type when the assignment sets none. Moodle renders"accepted_types":[]for an assignment with no type restriction. The parser kept that empty list as the allowed set, so every upload stopped withis not an accepted type; allowed: .before anything was sent. An empty list now means any type, as it does in the browser.- Accepted types that PHP serialised as an object are read as a list. A PHP array with gaps in its keys arrives as a JSON object; it was being turned into the single type
[object Object]and sent back to Moodle with the upload.
Checked against a live Moodle 4.5 assignment with --dry-run.
Upgrade
npm install -g moodle-cli@0.9.4Or:
moodle updateNo configuration or cache format changes.