Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* @return ILinkAction
*/
public function newEMailAction($icon, $name, $email) {
- return $this->newLinkAction($icon, $name, 'mailto:' . urlencode($email));
+ return $this->newLinkAction($icon, $name, 'mailto:' . $email);
}
}
$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());
}
}