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

qtype_calculated no longer supports special characters

XMLWordPrintable

    • MOODLE_404_STABLE
    • Hide

      Change the line question/type/calculated/questiontype.php:44 to the below:

      const PLACEHOLDER_REGEX_PART = '[[:alpha:]æøåÆØÅ][[:alpha:]æøåÆØÅ[:digit:]\-_\s]*';
      

      Show
      Change the line question/type/calculated/questiontype.php:44 to the below: const PLACEHOLDER_REGEX_PART = '[[:alpha:]æøåÆØÅ][[:alpha:]æøåÆØÅ[:digit:]\-_\s]*' ;

      We have a lot of qtype_calculated questions and after we updated from 4.2 to the newest 4.4 release we've found that the characters "æ", "ø" & "å" are no longer in placeholder names.

      MDL-82576 - I get that it was changed with the goal of improving security, but what should we now do with all our invalid questions? - Can we allow some special characters?

            lucaboesch Luca Bösch
            frederikmillingpytlick Frederik Milling Pytlick
            Votes:
            1 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.