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

Diff of /contributions/modules/invisimail/invisimail.module

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

revision 1.3.4.5, Tue Mar 31 22:10:09 2009 UTC revision 1.3.4.6, Tue Mar 31 22:48:38 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: invisimail.module,v 1.3.4.4 2008/06/13 23:05:36 crell Exp $  // $Id: invisimail.module,v 1.3.4.5 2009/03/31 22:10:09 crell Exp $
3    
4  /**  /**
5   * @file   * @file
# Line 98  function invisimail_filter($op, $delta = Line 98  function invisimail_filter($op, $delta =
98  }  }
99    
100  function invisimail($string, $format) {  function invisimail($string, $format) {
101    $pattern = "!(<p>|<li>|<br />|[ \n\r\t\(])([A-Za-z0-9._-]+@[A-Za-z0-9._-]+\.[A-Za-z]{2,4})([.,]?)(?=(</p>|</li>|<br />|[ \n\r\t\)]))!i";    $pattern = '!(<p>|<li>|<br />|[\s\(])([A-Za-z0-9._-]+@[A-Za-z0-9._-]+\.[A-Za-z]{2,4})([.,]?)(?=(</p>|</li>|<br />|[\s/)]))!i';
   
102    // the callback needs to know what filter we're using    // the callback needs to know what filter we're using
103    // however there's no way to hand off that variable    // however there's no way to hand off that variable
104    // so we'll set a global variable    // so we'll set a global variable

Legend:
Removed from v.1.3.4.5  
changed lines
  Added in v.1.3.4.6

  ViewVC Help
Powered by ViewVC 1.1.2