Moodle

Quote issue (help field) when updating mnet_rpc

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Duplicate
  • Affects Version/s: 1.9.1
  • Fix Version/s: None
  • Component/s: MNet
  • Labels:
    None
  • Database:
    Any
  • Affected Branches:
    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); }
}

Issue Links

Activity

Hide
Penny Leach added a comment -

duplicate of MDL-17931

Show
Penny Leach added a comment - duplicate of MDL-17931

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: