Merge pull request #19176 from nextcloud/fix/contacts-menu-mailt-encoding
Do not encode contacts menu mailto links
This commit is contained in:
commit
9ed106f69a
|
@ -50,7 +50,7 @@ class ActionFactory implements IActionFactory {
|
||||||
* @return ILinkAction
|
* @return ILinkAction
|
||||||
*/
|
*/
|
||||||
public function newEMailAction($icon, $name, $email) {
|
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->assertInstanceOf(IAction::class, $action);
|
||||||
$this->assertEquals($name, $action->getName());
|
$this->assertEquals($name, $action->getName());
|
||||||
$this->assertEquals(10, $action->getPriority());
|
$this->assertEquals(10, $action->getPriority());
|
||||||
$this->assertEquals('mailto:user%40example.com', $action->getHref());
|
$this->assertEquals('mailto:user@example.com', $action->getHref());
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue