Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
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
- All
- Comments
- History
- Activity
- Source
- Test Sessions
duplicate of
MDL-17931MDL-17931