MDL-18771 fixed db quoting
This commit is contained in:
+1
-1
@@ -399,7 +399,7 @@ function data_generate_default_template(&$data, $template, $recordid=0, $form=fa
|
||||
if ($update) {
|
||||
$newdata = new object();
|
||||
$newdata->id = $data->id;
|
||||
$newdata->{$template} = $str;
|
||||
$newdata->{$template} = addslashes($str);
|
||||
if (!update_record('data', $newdata)) {
|
||||
notify('Error updating template');
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user