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

Quote issue (help field) when updating mnet_rpc

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • None
    • 1.9.1
    • MNet
    • None
    • Any
    • MOODLE_19_STABLE

      Breaks update statement when a quote in help text.

      How to fix :

      in /admin/mnet/adminlib.php ยง67 :

      foreach($rpcrecords as $rpc) {
      if (!array_key_exists($rpc->function_name, $methodServiceArray))

      { $rpc->enabled = 0; $rpc->help = addslashes($rpc->help); // ADD THIS TO PROTECT HELP BACK update_record('mnet_rpc', $rpc); }

      }

            mjollnir Penny Leach (Inactive)
            vf Valery Fremaux
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

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