mnet MDL-17931 add slashes to mnet method profiles when saving

This commit is contained in:
Penny Leach
2010-01-13 22:17:25 +00:00
parent 534182ebdd
commit 46cc83dfdb
+1 -1
View File
@@ -85,7 +85,7 @@ function mnet_get_functions($type, $parentname) {
} else {
array_unshift($profile, $details['returns']);
}
$dataobject->profile = serialize($profile);
$dataobject->profile = addslashes(serialize($profile));
$dataobject->help = addslashes($details['description']);
} else {
$dataobject->profile = serialize(array(array('type' => 'void', 'description' => 'No return value')));