Merge pull request #19208 from nextcloud/backport/19176/stable17

[stable17] Do not encode contacts menu mailto links
This commit is contained in:
Roeland Jago Douma 2020-01-30 22:07:42 +01:00 committed by GitHub
commit d411f9fef9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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());
}
}