]> git.mxchange.org Git - friendica.git/commitdiff
Bugfix: The url in attachments had problems with entities
authorMichael Vogel <icarus@dabo.de>
Sun, 22 May 2016 11:46:05 +0000 (13:46 +0200)
committerMichael Vogel <icarus@dabo.de>
Sun, 22 May 2016 11:46:05 +0000 (13:46 +0200)
include/plaintext.php

index 559e0a0e83e13a0fc7d4cfa387a5ad13284c7e2d..92ba8a27564bc9f0b182f6f96a92239528b3314f 100644 (file)
@@ -116,6 +116,8 @@ function get_attachment_data($body) {
        if ($matches[1] != "")
                $url = $matches[1];
 
+       $url = html_entity_decode($url, ENT_QUOTES, 'UTF-8');
+
        if ($url != "")
                $data["url"] = $url;