fmsystem-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Fmsystem-commits] [7587] api: email validating


From: Sigurd Nes
Subject: [Fmsystem-commits] [7587] api: email validating
Date: Wed, 14 Sep 2011 14:19:14 +0000

Revision: 7587
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=7587
Author:   sigurdne
Date:     2011-09-14 14:19:14 +0000 (Wed, 14 Sep 2011)
Log Message:
-----------
api: email validating

Modified Paths:
--------------
    trunk/phpgwapi/inc/class.send.inc.php

Modified: trunk/phpgwapi/inc/class.send.inc.php
===================================================================
--- trunk/phpgwapi/inc/class.send.inc.php       2011-09-14 13:35:56 UTC (rev 
7586)
+++ trunk/phpgwapi/inc/class.send.inc.php       2011-09-14 14:19:14 UTC (rev 
7587)
@@ -56,6 +56,7 @@
                function send_email($to, $subject, $body, $msgtype, $cc, $bcc, 
$from, $sender, $content_type, $ignored,$attachments, $receive_notification)
                {
                        $smtp = createObject('phpgwapi.mailer_smtp');
+                       $from = 
str_replace(array('[',']'),array('<','>'),$from);
                        $from_array = split('<', $from);
                        unset($from);
                        if ( count($from_array) == 2 )
@@ -80,6 +81,7 @@
                        
                        foreach ($to as $entry)
                        {
+                               $entry = 
str_replace(array('[',']'),array('<','>'),$entry);
                                $to_array = split('<', $entry);
                                if ( count($to_array) == 2 )
                                {
@@ -105,6 +107,7 @@
                        
                                foreach ($cc as $entry)
                                {
+                                       $entry = 
str_replace(array('[',']'),array('<','>'),$entry);
                                        $cc_array = split('<', $entry);
                                        if ( count($cc_array) == 2 )
                                        {
@@ -130,6 +133,7 @@
                        
                                foreach ($bcc as $entry)
                                {
+                                       $entry = 
str_replace(array('[',']'),array('<','>'),$entry);
                                        $bcc_array = split('<', $entry);
                                        if ( count($bcc_array) == 2 )
                                        {




reply via email to

[Prev in Thread] Current Thread [Next in Thread]