aboutsummaryrefslogtreecommitdiff
path: root/mass_image_import.module
diff options
context:
space:
mode:
Diffstat (limited to 'mass_image_import.module')
-rw-r--r--mass_image_import.module4
1 files changed, 2 insertions, 2 deletions
diff --git a/mass_image_import.module b/mass_image_import.module
index 137cac3..3f97bf0 100644
--- a/mass_image_import.module
+++ b/mass_image_import.module
@@ -228,8 +228,8 @@ function mass_image_import_file($file, $type = 'image') {
if ($filepath = file_check_location($dirpath .'/'. $origname, $dirpath)) {
$args = array(
'node_type' => 'image',
- 'title' => isset($file->title) ? $file->title : basename($file->name),
- 'body' => isset($file->body) ? $file->body : basename($file->name),
+ 'title' => isset($file->title) ? check_plain($file->title) : basename($file->name),
+ 'body' => isset($file->body) ? check_plain($file->body) : basename($file->name),
'filepath' => $filepath,
'origname' => $origname,
);