aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio <silvio@devlet.com.br>2010-11-05 17:41:03 -0200
committerSilvio <silvio@devlet.com.br>2010-11-05 17:41:03 -0200
commit32f51c9b0cd55d3c4c841843dededc972291196a (patch)
tree2e5becbd845698456c641b57ee487248d6ed38a7
parentfcbf2c14e8f3c85f9bfd4ba6ecf333e091880c37 (diff)
downloadmass_image_import-32f51c9b0cd55d3c4c841843dededc972291196a.tar.gz
mass_image_import-32f51c9b0cd55d3c4c841843dededc972291196a.tar.bz2
Running check_plain() at title and body
-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,
);