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

Deprecate addslashes_js

XMLWordPrintable

    • MOODLE_20_STABLE, MOODLE_26_STABLE, MOODLE_27_STABLE

      All our new code like $PAGE->requires->data_for_js and ->js_function_call automatically does json_encode on data, which is better than addslashes_js.

      A quiz grep finds about 50 references in HEAD. We need to

      1. Eliminate all calls in core.
      2. Move it to deprecatedlib.php and add debugging output.

            moodle.com Moodle HQ
            timhunt Tim Hunt
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

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