Index: wordfilter.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/wordfilter/wordfilter.module,v
retrieving revision 1.7.2.9.2.15
diff -b -u -p -r1.7.2.9.2.15 wordfilter.module
--- wordfilter.module	11 Sep 2009 05:32:23 -0000	1.7.2.9.2.15
+++ wordfilter.module	9 Oct 2009 08:19:18 -0000
@@ -354,7 +354,7 @@ function wordfilter_filter_process($text
         $new_string = '';
         foreach ($split_text as $part) {
           if (!preg_match('/^</', $part)) {
-            $new_string .= preg_replace($pattern, "$1". $replacement ."$2", $part);
+            $new_string .= preg_replace($pattern, "\${1}". $replacement ."\${2}", $part);
           }
           else {
             $new_string .= $part;
@@ -363,7 +363,7 @@ function wordfilter_filter_process($text
         $text = ' '. $new_string .' ';
       }
       else {
-        $text = preg_replace($pattern, "$1". $replacement ."$2", $text);
+        $text = preg_replace($pattern, "\${1}". $replacement ."\${2}", $text);
       }
     }
   }
