X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FModule%2FParseUrl.php;h=e2d75ee8447fd70e2c561a4c5f5a021d26a78541;hb=98aed4dde31234883bb3eb5f77143159641a8ea5;hp=ed48ea1b263a7ca5d88bfe6f68fc86e974caff74;hpb=7b41866410f1df832c8a1e2634655a8af9feae9b;p=friendica.git diff --git a/src/Module/ParseUrl.php b/src/Module/ParseUrl.php index ed48ea1b26..e2d75ee844 100644 --- a/src/Module/ParseUrl.php +++ b/src/Module/ParseUrl.php @@ -1,6 +1,6 @@ userSession = $userSession; + } + + protected function rawContent(array $request = []) { - if (!Session::isAuthenticated()) { + if (!$this->userSession->isAuthenticated()) { throw new \Friendica\Network\HTTPException\ForbiddenException(); } @@ -88,8 +102,7 @@ class ParseUrl extends BaseModule if ($format == 'json') { System::jsonExit($arr['text']); } else { - echo $arr['text']; - exit(); + System::httpExit($arr['text']); } } @@ -122,8 +135,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'] ?? '')); } } }