Do not encode contacts menu mailto links

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
This commit is contained in:
Christoph Wurst 2020-01-28 14:29:41 +01:00
parent 9bc08dc325
commit 87ec729f34
No known key found for this signature in database
GPG Key ID: CC42AC2A7F0E56D8
2 changed files with 2 additions and 2 deletions

View File

@ -50,7 +50,7 @@ class ActionFactory implements IActionFactory {
* @return ILinkAction
*/
public function newEMailAction($icon, $name, $email) {
return $this->newLinkAction($icon, $name, 'mailto:' . urlencode($email));
return $this->newLinkAction($icon, $name, 'mailto:' . $email);
}
}

View File

@ -61,7 +61,7 @@ class ActionFactoryTest extends TestCase {
$this->assertInstanceOf(IAction::class, $action);
$this->assertEquals($name, $action->getName());
$this->assertEquals(10, $action->getPriority());
$this->assertEquals('mailto:user%40example.com', $action->getHref());
$this->assertEquals('mailto:user@example.com', $action->getHref());
}
}