-
Notifications
You must be signed in to change notification settings - Fork 262
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(mailto): Handle BCC recipients only
Signed-off-by: Christoph Wurst <[email protected]>
- Loading branch information
1 parent
ff49911
commit c8bfa04
Showing
3 changed files
with
17 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -53,6 +53,7 @@ | |
use PHPUnit\Framework\MockObject\MockObject; | ||
use Psr\Container\ContainerInterface; | ||
use Psr\Log\LoggerInterface; | ||
use function urlencode; | ||
|
||
class PageControllerTest extends TestCase { | ||
/** @var string */ | ||
|
@@ -381,6 +382,17 @@ public function testComposeWithCc() { | |
$this->assertEquals($expected, $response); | ||
} | ||
|
||
public function testComposeBcc() { | ||
$bcc = '[email protected]'; | ||
$uri = "mailto:?bcc=$bcc"; | ||
|
||
$expected = new RedirectResponse('?bcc=' . urlencode($bcc)); | ||
|
||
$response = $this->controller->compose($uri); | ||
|
||
$this->assertEquals($expected, $response); | ||
} | ||
|
||
public function testComposeWithBcc() { | ||
$address = '[email protected]'; | ||
$bcc = '[email protected]'; | ||
|