Skip to content
Permalink
Browse files

Merged pull request zetacomponents#70

  • Loading branch information...
derickr committed Feb 13, 2019
2 parents ecd3c92 + b92ef11 commit b60e9a543f6c3d9a9ec74452d4ff5736a1c63a77
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/transports/imap/imap_transport.php
@@ -543,7 +543,9 @@ public function authenticate( $user, $password )
}
$tag = $this->getNextTag();
$this->connection->sendData( "{$tag} LOGIN {$user} {$password}" );
$user = addcslashes($user, '\"');
$password = addcslashes($password, '\"');
$this->connection->sendData( "{$tag} LOGIN \"{$user}\" \"{$password}\"" );
$response = trim( $this->connection->getLine() );
// hack for gmail, to fix issue #15837: imap.google.com (google gmail) changed IMAP response
if ( $this->serverType === self::SERVER_GIMAP && strpos( $response, "* CAPABILITY" ) === 0 )

0 comments on commit b60e9a5

Please sign in to comment.
You can’t perform that action at this time.