]> BookStack Code Mirror - bookstack/blobdiff - app/Http/Controllers/SettingController.php
Added webhook_call_before theme event hook
[bookstack] / app / Http / Controllers / SettingController.php
index d9f172081ef2efb2851c0dacbc5937e2cc8c7e71..b12b0e3cece02cd0dc80627f1a064e498dab8d33 100644 (file)
@@ -44,7 +44,7 @@ class SettingController extends Controller
         $this->preventAccessInDemoMode();
         $this->checkPermission('settings-manage');
         $this->validate($request, [
-            'app_logo' => 'nullable|' . $this->getImageValidationRules(),
+            'app_logo' => array_merge(['nullable'], $this->getImageValidationRules()),
         ]);
 
         // Cycles through posted settings and update them