== Changelog ==

Changes in older versions of Multi Questions Simulator. The current version is
described in readme.txt.

= 1.0.1 =
* Security: the question set's icon setting was used as a file name without
  validation and the file was loaded as PHP. A contributor could make the server
  run another `.svg` file as PHP. Only the listed icons are saved and shown now,
  and the bundled SVG files are read as text.
* Security: the plugin's post meta (keys starting with `mqs_`) is now protected
  meta. Users without `unfiltered_html` could write custom scripts or links to
  other users' question sets through WordPress's custom field handling, which
  could lead to stored XSS.
* Security: custom scripts of a result are output only when the result's author
  has `unfiltered_html` (on multisite, only super admins). Scripts that do not run
  are not copied when a result is duplicated.
* Security: color settings accept only hex colors, and the color preset only a
  preset name or "custom".
* Security: a result can only be assigned to question sets you can edit, and the
  answer conditions of other users' results can no longer be read through the
  admin AJAX. Only the first question set link of a result is used. Links to
  other users' question sets saved before 1.0.1 are kept; check your results
  filtered by question set after updating.
* Security: answer conditions are saved only for published questions of the
  assigned question set.
* Security: only questions the saving user can read can be added to a question
  set.
* Security: a result is shown only if every question it has conditions on was
  answered. Answers to questions outside the set are ignored, and a question set
  without published questions returns no results.
* Security: added a nonce check when a question is created from a question set.
* Fixed: activating the free edition while the Pro edition was active caused a
  fatal error. The free edition now stops loading and shows a notice.
* Fixed: the one-question-set limit could be bypassed through WP-CLI, the private
  status, restoring from the trash or two browser tabs.
* Fixed: backslashes were removed from text settings, choices and custom scripts
  on every save, and from content and block attributes when duplicating.
* Fixed: malformed answers caused PHP warnings and results that ignored the
  conditions. They now get an HTTP 400 response.
* Fixed: a result with broken answer condition data made the whole results
  request fail on PHP 8.
* Fixed: saving a result assigned to a draft, pending, scheduled, private or
  trashed question set removed the assignment.
* Fixed: duplicating accepted post types other than questions and results.
* Fixed: the upgrade notices had no styles.
* Improved: clear messages when the question set limit blocks an action.
* Improved: duplicating a result also copies its custom scripts, when they run
  and the user has `unfiltered_html`.
* Improved: the "Pages using this set" script loads only on the question set's
  edit screen.
* Improved: an English (en_US) translation was bundled.
* Changed: requires WordPress 7.0 and PHP 8.2 (1.0.0 required WordPress 6.0 and
  PHP 7.4).
* Changed: question sets in the trash are no longer displayed.
* Changed: the results request accepts at most 100 answers.
* Changed: "Pages using this set" shows only a count for posts you cannot read.
* Changed: result titles are no longer printed as HTML comments in the results.
* Changed: the Update URI header points to this plugin's page on WordPress.org.
* Added: a notice that asks to update when data converted by a later version is
  found.
* Changed: the author is now Plugear. Added the license (GPLv2 or later) and the
  LICENSE file.

= 1.0.0 =
* First release.
