diff options
author | Silvio <silvio@devlet.com.br> | 2010-11-05 17:46:52 -0200 |
---|---|---|
committer | Silvio <silvio@devlet.com.br> | 2010-11-05 17:46:52 -0200 |
commit | 6f4dbdc1131868d2f8f5ed059b1e4b7be09c68f1 (patch) | |
tree | c254b8cc8e54d425d2b9ef23b7cf659a0f083f0a | |
parent | c532bf689a458317c6f668af283b9826760b0665 (diff) | |
download | node_truncate-6f4dbdc1131868d2f8f5ed059b1e4b7be09c68f1.tar.gz node_truncate-6f4dbdc1131868d2f8f5ed059b1e4b7be09c68f1.tar.bz2 |
Using check_plain()
-rw-r--r-- | node_truncate.module | 4 |
1 files 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']; |