]> BookStack Code Mirror - bookstack/blobdiff - app/Http/Middleware/TrimStrings.php
respective book and chapter structure added.
[bookstack] / app / Http / Middleware / TrimStrings.php
index 34b7e912d32ebdcd486134e6cfa200ec06c41fb7..cbdc88fb9b703465a90a6b55d75caa660a7cd9c9 100644 (file)
@@ -2,9 +2,9 @@
 
 namespace BookStack\Http\Middleware;
 
-use Illuminate\Foundation\Http\Middleware\TrimStrings as BaseTrimmer;
+use Illuminate\Foundation\Http\Middleware\TrimStrings as Middleware;
 
-class TrimStrings extends BaseTrimmer
+class TrimStrings extends Middleware
 {
     /**
      * The names of the attributes that should not be trimmed.
@@ -14,5 +14,6 @@ class TrimStrings extends BaseTrimmer
     protected $except = [
         'password',
         'password_confirmation',
+        'password-confirm',
     ];
 }