Skip to content

Commit

Permalink
PHP Mailer Bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
NorHei committed Dec 27, 2016
1 parent 3bc384d commit 4b39293
Show file tree
Hide file tree
Showing 57 changed files with 7,163 additions and 1,508 deletions.
2 changes: 1 addition & 1 deletion wbce/include/phpmailer/LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ of these things:
from a designated place, offer equivalent access to copy the above
specified materials from the same place.

e) Verify that the user has already received a copy of these
e) verify that the user has already received a copy of these
materials or that you have already sent this user a copy.

For an executable, the required form of the "work that uses the
Expand Down
26 changes: 21 additions & 5 deletions wbce/include/phpmailer/PHPMailerAutoload.php
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<?php
/**
* PHPMailer SPL autoloader.
* PHP Version 5.0.0
* PHP Version 5
* @package PHPMailer
* @link https://github.com/PHPMailer/PHPMailer/
* @author Marcus Bointon (coolbru) <[email protected]>
* @link https://github.com/PHPMailer/PHPMailer/ The PHPMailer GitHub project
* @author Marcus Bointon (Synchro/coolbru) <[email protected]>
* @author Jim Jagielski (jimjag) <[email protected]>
* @author Andy Prevost (codeworxtech) <[email protected]>
* @author Brent R. Matzelle (original founder)
* @copyright 2013 Marcus Bointon
* @copyright 2012 - 2014 Marcus Bointon
* @copyright 2010 - 2012 Jim Jagielski
* @copyright 2004 - 2009 Andy Prevost
* @license http://www.gnu.org/copyleft/lesser.html GNU Lesser General Public License
Expand All @@ -30,4 +30,20 @@ function PHPMailerAutoload($classname)
}
}

spl_autoload_register('PHPMailerAutoload');
if (version_compare(PHP_VERSION, '5.1.2', '>=')) {
//SPL autoloading was introduced in PHP 5.1.2
if (version_compare(PHP_VERSION, '5.3.0', '>=')) {
spl_autoload_register('PHPMailerAutoload', true, true);
} else {
spl_autoload_register('PHPMailerAutoload');
}
} else {
/**
* Fall back to traditional autoload for old PHP versions
* @param string $classname The name of the class to load
*/
function __autoload($classname)
{
PHPMailerAutoload($classname);
}
}
1 change: 1 addition & 0 deletions wbce/include/phpmailer/VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
5.2.19
Loading

0 comments on commit 4b39293

Please sign in to comment.