Index: import.php =================================================================== RCS file: /cvsroot/moodle/moodle/mod/data/import.php,v retrieving revision 1.21.2.5 diff -u -r1.21.2.5 import.php --- mod/data/import.php 14 May 2008 02:47:35 -0000 1.21.2.5 +++ mod/data/import.php 14 May 2008 12:59:16 -0000 @@ -130,6 +130,7 @@ // for now, only for "latlong" and "url" fields, but that should better be looked up from // $CFG->dirroot . '/mod/data/field/' . $field->type . '/field.class.php' // once there is stored how many contents the field can have. + $value = addslashes($value); if (preg_match("/^(latlong|url)$/", $field->type)) { $values = explode(" ", clean_param($value, PARAM_NOTAGS), 2); $content->content = $values[0];