Take function call out of loop

This commit is contained in:
Marcus Bointon 2017-07-28 10:46:56 +02:00
parent 3eb9e8b47a
commit 01264ebf31
No known key found for this signature in database
GPG Key ID: DE31CD6EB646AA24
1 changed files with 2 additions and 1 deletions

View File

@ -3945,7 +3945,8 @@ class PHPMailer
public function DKIM_QP($txt)
{
$line = '';
for ($i = 0; $i < strlen($txt); ++$i) {
$len = strlen($txt);
for ($i = 0; $i < $len; ++$i) {
$ord = ord($txt[$i]);
if (((0x21 <= $ord) and ($ord <= 0x3A)) or $ord == 0x3C or ((0x3E <= $ord) and ($ord <= 0x7E))) {
$line .= $txt[$i];