Explorar el Código

Update ProfileController, handle permalink redirect bug

Daniel Supernault hace 1 año
padre
commit
75081e609a
Se han modificado 1 ficheros con 2 adiciones y 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());
     }