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

Single quote in question name or description breaks update to 1.9beta+

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 1.9
    • Fix Version/s: 1.9
    • Component/s: Questions
    • Labels:
      None
    • Affected Branches:
      MOODLE_19_STABLE
    • Fixed Branches:
      MOODLE_19_STABLE

      Description

      Single quote in question name or description breaks update to 1.9beta+, throwing this type of warning:

      ADOConnection._Execute(UPDATE mdl_question_categories SET name = 'Evaluation de modules', contextid = '170', info = 'Questionnaire d'évaluation a remp..., false) % line 891, file: adodb.inc.php
      ADOConnection.Execute(UPDATE mdl_question_categories SET name = 'Evaluation de modules', contextid = '170', info = 'Questionnaire d'évaluation a remp...) % line 1627, file: dmllib.php
      update_record(question_categories, Object:stdClass) % line 276, file: upgrade.php
      question_upgrade_context_etc() % line 1680, file: upgrade.php
      xmldb_main_upgrade(2007021520) % line 329, file: index.php

        Attachments

          Activity

            People

            Assignee:
            timhunt Tim Hunt
            Reporter:
            mina Nicolas Martignoni
            Tester:
            Nicolas Martignoni
            Participants:
            Component watchers:
            Tim Hunt, Andrew Nicols, Dongsheng Cai, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              3/Mar/08