Skip to content

Commit 909bf96

Browse files
committed
Update UserController.php
1 parent b79d590 commit 909bf96

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

app/Http/Controllers/UserController.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,10 @@ public function userRedirect(request $request)
106106
return abort(404);
107107
}
108108

109+
if (empty($user)) {
110+
return abort(404);
111+
}
112+
109113
return redirect(url('@'.$user));
110114
}
111115

0 commit comments

Comments
 (0)