]> BookStack Code Mirror - bookstack/commitdiff
Removed empty string null middleware as was causing issues
authorDan Brown <redacted>
Sat, 30 Sep 2017 13:44:52 +0000 (14:44 +0100)
committerDan Brown <redacted>
Sat, 30 Sep 2017 13:44:52 +0000 (14:44 +0100)
app/Http/Kernel.php
app/Http/Middleware/TrimStrings.php

index 2b5caa89c5c2ef70cf689af58a7b5e547a48db7f..830b6011772aaf0358f7eea9fffaff90fec444af 100644 (file)
@@ -15,7 +15,6 @@ class Kernel extends HttpKernel
         \Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode::class,
         \Illuminate\Foundation\Http\Middleware\ValidatePostSize::class,
         \BookStack\Http\Middleware\TrimStrings::class,
-        \Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull::class,
     ];
 
     /**
index 34b7e912d32ebdcd486134e6cfa200ec06c41fb7..c9d371fee55d457c48d77d7d56f4f0b4bb91c104 100644 (file)
@@ -14,5 +14,6 @@ class TrimStrings extends BaseTrimmer
     protected $except = [
         'password',
         'password_confirmation',
+        'password-confirm',
     ];
 }