Преглед изворни кода

Update ProfileController, handle permalink redirect bug

Daniel Supernault пре 1 година
родитељ
комит
75081e609a
1 измењених фајлова са 2 додато и 0 уклоњено
  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());
     }