|
|
| Database: |
Any
|
| Participants: |
Nobody and Valery Fremaux
|
| Security Level: |
None
|
| Affected Branches: |
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);
}
}
|
|
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);
}
}
|
Show » |
| There are no comments yet on this issue.
|
|