From 69ec1a6996314221bcfdea1244d63abdfd20a201 Mon Sep 17 00:00:00 2001 From: Kjartan Mannes Date: Sat, 4 May 2002 18:56:43 +0000 Subject: - making sure the nodes call filter(). --- modules/node.module | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/node.module') diff --git a/modules/node.module b/modules/node.module index b527a10b8..92b882f76 100644 --- a/modules/node.module +++ b/modules/node.module @@ -307,9 +307,9 @@ function node_filter_html($text) { } function node_filter_link($text) { - $src = '\[{2}([^\|]+)(\|([^\|]+)?)?\]{2}'; // [link|description] + $pat = '\[{2}([^\|]+)(\|([^\|]+)?)?\]{2}'; // [link|description] $dst = str_replace('%5C1', '\\1', format_tag('\\1', '\\3')); // [link|description] - return ereg_replace($src, $dst, $text); + return ereg_replace($pat, $dst, $text); } function node_filter_line($text) { -- cgit v1.2.3