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

Discouraged use of addslashes() in initialise_local_config_cache()

XMLWordPrintable

      Initialise_local_config_cache() contains discouraged addslashes() use for constructing of PHP code fragment - see https://docs.moodle.org/dev/Slashes for it's original use in Moodle 1.x, all uses of addslashes were previously removed from Moodle around 2.0.

      Solution is to use var_export() to get variable content as PHP code - see https://www.php.net/manual/en/function.var-export.php

       

        1. 400.gif
          400.gif
          266 kB
        2. 401.gif
          401.gif
          513 kB
        3. master.gif
          master.gif
          344 kB

            skodak Petr Skoda
            skodak Petr Skoda
            Farhan Karmali Farhan Karmali
            Andrew Lyons Andrew Lyons
            Ron Carl Alfon Yu Ron Carl Alfon Yu
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 24 minutes
                24m

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