From 32f51c9b0cd55d3c4c841843dededc972291196a Mon Sep 17 00:00:00 2001 From: Silvio Date: Fri, 5 Nov 2010 17:41:03 -0200 Subject: Running check_plain() at title and body --- mass_image_import.module | 4 ++-- 1 file 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, ); -- cgit v1.2.3