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

Adding random questions from a category with an apostrophe in the name does not work

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.9.1
    • 1.7.5, 1.8.6, 1.9.2
    • Quiz
    • None
    • MOODLE_19_STABLE
    • MOODLE_17_STABLE, MOODLE_18_STABLE, MOODLE_19_STABLE

    Description

      http://moodle.org/mod/forum/discuss.php?d=65204

      Joseph Rézeau suggests the fix:

      Solution: In file moodle/mod/quiz/edit.php, towards line 185, replace:

      $form->name = get_string('random', 'quiz') .' ('. $category->name .')';

      with

      $form->name = get_string('random', 'quiz') .' ('. addslashes($category->name) .')';

      which is right. I'll apply it.

      Attachments

        Issue Links

          Activity

            People

              timhunt Tim Hunt
              timhunt Tim Hunt
              Jérôme Mouneyrac Jérôme Mouneyrac
              Tim Hunt, Amaia Anabitarte, Bas Brands, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Kevin Percy, Laurent David, Mathew May, Mihail Geshoski, Sabina Abellan, Sara Arjona (@sarjona), Shamim Rezaie
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                11/Jul/08