From 28804b00689ae0724f155288d09f6835f14aee6b Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Wed, 11 Jan 2017 19:51:47 +0200 Subject: [PATCH] Trim gateway config info --- app/Http/Controllers/AccountGatewayController.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/Http/Controllers/AccountGatewayController.php b/app/Http/Controllers/AccountGatewayController.php index 004418d445..7d2d97e294 100644 --- a/app/Http/Controllers/AccountGatewayController.php +++ b/app/Http/Controllers/AccountGatewayController.php @@ -259,28 +259,28 @@ class AccountGatewayController extends BaseController $config = clone $oldConfig; } - $publishableKey = Input::get('publishable_key'); + $publishableKey = trim(Input::get('publishable_key')); if ($publishableKey = str_replace('*', '', $publishableKey)) { $config->publishableKey = $publishableKey; } elseif ($oldConfig && property_exists($oldConfig, 'publishableKey')) { $config->publishableKey = $oldConfig->publishableKey; } - $plaidClientId = Input::get('plaid_client_id'); + $plaidClientId = trim(Input::get('plaid_client_id')); if ($plaidClientId = str_replace('*', '', $plaidClientId)) { $config->plaidClientId = $plaidClientId; } elseif ($oldConfig && property_exists($oldConfig, 'plaidClientId')) { $config->plaidClientId = $oldConfig->plaidClientId; } - $plaidSecret = Input::get('plaid_secret'); + $plaidSecret = trim(Input::get('plaid_secret')); if ($plaidSecret = str_replace('*', '', $plaidSecret)) { $config->plaidSecret = $plaidSecret; } elseif ($oldConfig && property_exists($oldConfig, 'plaidSecret')) { $config->plaidSecret = $oldConfig->plaidSecret; } - $plaidPublicKey = Input::get('plaid_public_key'); + $plaidPublicKey = trim(Input::get('plaid_public_key')); if ($plaidPublicKey = str_replace('*', '', $plaidPublicKey)) { $config->plaidPublicKey = $plaidPublicKey; } elseif ($oldConfig && property_exists($oldConfig, 'plaidPublicKey')) {