Explorar o código

Update ProfileController, handle permalink redirect bug

Daniel Supernault hai 1 ano
pai
achega
75081e609a
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      app/Http/Controllers/ProfileController.php

+ 2 - 0
app/Http/Controllers/ProfileController.php

@@ -172,6 +172,8 @@ class ProfileController extends Controller
 
         $user = $this->getCachedUser($username);
 
+        abort_if(!$user, 404);
+
         return redirect($user->url());
     }