mirror of
https://github.com/nextcloud/server.git
synced 2026-05-12 16:39:39 -04:00
Do not encode contacts menu mailto links
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
This commit is contained in:
parent
0a95ba10f1
commit
78cc8e2e7b
2 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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());
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue