Переглянути джерело

Update DiscoverController, fixes #2378

Daniel Supernault 4 роки тому
батько
коміт
8e7f4f9d88
1 змінених файлів з 1 додано та 1 видалено
  1. 1 1
      app/Http/Controllers/DiscoverController.php

+ 1 - 1
app/Http/Controllers/DiscoverController.php

@@ -118,7 +118,7 @@ class DiscoverController extends Controller
       abort_if(!config('instance.discover.tags.is_public') && !$auth, 403);
       abort_if(!config('instance.discover.tags.is_public') && !$auth, 403);
 
 
       $this->validate($request, [
       $this->validate($request, [
-        'hashtag' => 'required|alphanum|min:1|max:124',
+        'hashtag' => 'required|string|min:1|max:124',
         'page' => 'nullable|integer|min:1|max:' . ($auth ? 29 : 10)
         'page' => 'nullable|integer|min:1|max:' . ($auth ? 29 : 10)
       ]);
       ]);