/[drupal]/contributions/modules/wordfilter/wordfilter.module
ViewVC logotype

Diff of /contributions/modules/wordfilter/wordfilter.module

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.7.2.21, Fri Sep 11 05:33:33 2009 UTC revision 1.7.2.22, Mon Oct 12 19:51:21 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: wordfilter.module,v 1.7.2.20 2009/06/05 07:59:19 jaydub Exp $  // $Id: wordfilter.module,v 1.7.2.21 2009/09/11 05:33:33 jaydub Exp $
3    
4  /**  /**
5   * @file   * @file
# Line 357  function wordfilter_filter_process($text Line 357  function wordfilter_filter_process($text
357          $new_string = '';          $new_string = '';
358          foreach ($split_text as $part) {          foreach ($split_text as $part) {
359            if (!preg_match('/^</', $part)) {            if (!preg_match('/^</', $part)) {
360              $new_string .= preg_replace($pattern, "$1". $replacement ."$2", $part);              $new_string .= preg_replace($pattern, "\${1}". $replacement ."\${2}", $part);
361            }            }
362            else {            else {
363              $new_string .= $part;              $new_string .= $part;
# Line 366  function wordfilter_filter_process($text Line 366  function wordfilter_filter_process($text
366          $text = ' '. $new_string .' ';          $text = ' '. $new_string .' ';
367        }        }
368        else {        else {
369          $text = preg_replace($pattern, "$1". $replacement ."$2", $text);          $text = preg_replace($pattern, "\${1}". $replacement ."\${2}", $text);
370        }        }
371      }      }
372    }    }

Legend:
Removed from v.1.7.2.21  
changed lines
  Added in v.1.7.2.22

  ViewVC Help
Powered by ViewVC 1.1.2