]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/ParseUrl.php
Add new frio.always_open_compose setting
[friendica.git] / src / Module / ParseUrl.php
index afb54ea325b35936643e8e90e923a893c1da8fc5..91d09240b7e6d39e5b530f3c28fc10643ba17915 100644 (file)
@@ -88,8 +88,7 @@ class ParseUrl extends BaseModule
                        if ($format == 'json') {
                                System::jsonExit($arr['text']);
                        } else {
-                               echo $arr['text'];
-                               exit();
+                               System::httpExit($arr['text']);
                        }
                }
 
@@ -122,8 +121,7 @@ class ParseUrl extends BaseModule
 
                        System::jsonExit($ret);
                } else {
-                       echo BBCode::embedURL($url, empty($_GET['noAttachment']), $title, $description, $_GET['tags'] ?? '');
-                       exit();
+                       System::httpExit(BBCode::embedURL($url, empty($_GET['noAttachment']), $title, $description, $_GET['tags'] ?? ''));
                }
        }
 }