X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FModule%2FProfile.php;h=fceea726b4cfe863d203673dbf11095810c0595b;hb=2628da422a57f573466f08ca3eb5791bf2bc35cf;hp=c3297d261a295ec9a8abc368f983aa1833f30d71;hpb=07cb88788540b4da83fbbaca2eed12bb6bed3a35;p=friendica.git diff --git a/src/Module/Profile.php b/src/Module/Profile.php index c3297d261a..fceea726b4 100644 --- a/src/Module/Profile.php +++ b/src/Module/Profile.php @@ -38,7 +38,7 @@ class Profile extends BaseModule // @TODO: Replace with parameter from router if ($a->argc < 2) { - System::httpExit(400); + throw new \Friendica\Network\HTTPException\BadRequestException(); } self::$which = filter_var($a->argv[1], FILTER_SANITIZE_STRING, FILTER_FLAG_STRIP_LOW | FILTER_FLAG_STRIP_HIGH | FILTER_FLAG_STRIP_BACKTICK);