From 6f4dbdc1131868d2f8f5ed059b1e4b7be09c68f1 Mon Sep 17 00:00:00 2001 From: Silvio Date: Fri, 5 Nov 2010 17:46:52 -0200 Subject: Using check_plain() --- node_truncate.module | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/node_truncate.module b/node_truncate.module index ec9a9cd..a906bfd 100644 --- a/node_truncate.module +++ b/node_truncate.module @@ -105,8 +105,8 @@ function node_truncate($type, &$context) { $node = node_delete($row['nid'], NULL, TRUE); $context['sandbox']['progress']++; $context['sandbox']['current_node'] = $node->nid; - $context['results'][] = $node->nid .' : '. $node->title; - $context['message'] = $node->title; + $context['results'][] = $node->nid .' : '. check_plain($node->title); + $context['message'] = check_plain($node->title); } if ($context['sandbox']['progress'] != $context['sandbox']['max']) { $context['finished'] = $context['sandbox']['progress'] / $context['sandbox']['max']; -- cgit v1.2.3