]> source.dussan.org Git - nextcloud-server.git/commitdiff
Do not encode contacts menu mailto links 19208/head
authorChristoph Wurst <christoph@winzerhof-wurst.at>
Tue, 28 Jan 2020 13:29:41 +0000 (14:29 +0100)
committerBackportbot <backportbot-noreply@rullzer.com>
Thu, 30 Jan 2020 08:47:00 +0000 (08:47 +0000)
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
lib/private/Contacts/ContactsMenu/ActionFactory.php
tests/lib/Contacts/ContactsMenu/ActionFactoryTest.php

index 6bc724bd4392e094b3e61f31fef3368d05667045..2841c5ad206d355338d9f76d9d63148530e5ada6 100644 (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);
        }
 
 }
index d1273c2b9adc3796512f9e384579c8b8137cb0e9..299946ed21c3e2ae9a2d884ba48e2a929596c9fc 100644 (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());
        }
 
 }