Revision 2064
Added by darkviper almost 12 years ago
! register PHPMailerAutoload now in initialize instead of class.WbMailer.php
- a unsecure require() fixed in class PHPMailer::__construct() (notice to Syncro given)
| class.phpmailer.php | ||
|---|---|---|
| 572 | 572 |
$this->exceptions = ($exceptions == true); |
| 573 | 573 |
//Make sure our autoloader is loaded |
| 574 | 574 |
if (!in_array('PHPMailerAutoload', spl_autoload_functions())) {
|
| 575 |
require 'PHPMailerAutoload.php'; |
|
| 575 |
$sAutoLoaderFile = __DIR__.DIRECTORY_SEPARATOR.'PHPMailerAutoload.php'; |
|
| 576 |
if (!is_readable($sAutoLoaderFile)) {
|
|
| 577 |
throw new phpmailerException('Unable to find autoloader: [' . $sAutoLoaderFile . ']');
|
|
| 578 |
} |
|
| 579 |
require($sAutoLoaderFile); |
|
| 576 | 580 |
} |
| 577 | 581 |
} |
| 578 | 582 |
|
Also available in: Unified diff