~ubuntu-branches/ubuntu/gutsy/smarty/gutsy-security

« back to all changes in this revision

Viewing changes to libs/plugins/function.mailto.php

  • Committer: Bazaar Package Importer
  • Author(s): Thierry Randrianiriana
  • Date: 2007-03-13 21:20:41 UTC
  • mfrom: (0.1.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20070313212041-dxa1s2e3pfhghc7u
Tags: 2.6.18-1
* New upstream release
* Added debian/docs
* debian/control:
  + added Homepage
  + removed Depends on debconf (Closes: #375234)
  + bumped Standards-Version to 3.7.2
  + added myself to Uploaders
* debian/copyright:
  + changed license to LGPL
  + added authors

Show diffs side-by-side

added added

removed removed

Lines of Context:
62
62
 
63
63
    // netscape and mozilla do not decode %40 (@) in BCC field (bug?)
64
64
    // so, don't encode it.
 
65
    $search = array('%40', '%2C');
 
66
    $replace  = array('@', ',');
65
67
    $mail_parms = array();
66
68
    foreach ($params as $var=>$value) {
67
69
        switch ($var) {
69
71
            case 'bcc':
70
72
            case 'followupto':
71
73
                if (!empty($value))
72
 
                    $mail_parms[] = $var.'='.str_replace('%40','@',rawurlencode($value));
 
74
                    $mail_parms[] = $var.'='.str_replace($search,$replace,rawurlencode($value));
73
75
                break;
74
76
                
75
77
            case 'subject':