Skip to content

Commit

Permalink
Small optimizations
Browse files Browse the repository at this point in the history
  • Loading branch information
slusarz committed Oct 22, 2013
1 parent 17d457a commit ee45485
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions framework/Smtp/lib/Horde/Smtp/Filter/Data.php
Expand Up @@ -40,8 +40,8 @@ public function filter($in, $out, &$consumed, $closing)

// If the first character is '.', need to check if it has to be
// doubled.
if (($bucket->data[0] == '.') &&
(is_null($this->_last) || ($this->_last == "\n"))) {
if (($bucket->data[0] === '.') &&
(is_null($this->_last) || ($this->_last === "\n"))) {
$bucket->data = '.' . $bucket->data;
}

Expand All @@ -52,7 +52,7 @@ public function filter($in, $out, &$consumed, $closing)
$bucket->data
);

$this->_last = $bucket->data[strlen($bucket->data) - 1];
$this->_last = substr($bucket->data, -1);

stream_bucket_append($out, $bucket);
}
Expand Down

0 comments on commit ee45485

Please sign in to comment.