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

Quote issue (help field) when updating mnet_rpc

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 1.9.1
    • None
    • MNet
    • None
    • Any
    • MOODLE_19_STABLE

    Description

      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); }

      }

      Attachments

        Issue Links

          Activity

            People

              mjollnir Penny Leach
              vf Valery Fremaux
              David Woloszyn, Huong Nguyen, Jake Dallimore, Meirza, Michael Hawkins, Raquel Ortega, Safat Shahin, Stevani Andolo
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: