]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Profile.php
Merge pull request #7068 from MrPetovan/task/7047-theme-error-page
[friendica.git] / src / Module / Profile.php
index c3297d261a295ec9a8abc368f983aa1833f30d71..fceea726b4cfe863d203673dbf11095810c0595b 100644 (file)
@@ -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);