Skip to content

v0.9.4

Choose a tag to compare

@github-actions github-actions released this 24 Sep 16:49
· 276 commits to main since this release
v0.9.4
e97d67c

Moodle CLI 0.9.4

A fix for moodle submit, which refused every file on assignments that do not restrict file types.

Fixes

  • moodle submit accepts 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 with is 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.4

Or:

moodle update

No configuration or cache format changes.