Merge pull request #1502 from CachetHQ/ignore-token-field

Ignore the _token field when updating settings
This commit is contained in:
James Brooks 2016-02-15 13:00:48 +00:00
commit 3cb6ba237c

View File

@ -230,7 +230,7 @@ class SettingsController extends Controller
} }
try { try {
foreach (Binput::except(['app_banner', 'remove_banner']) as $settingName => $settingValue) { foreach (Binput::except(['app_banner', 'remove_banner', '_token']) as $settingName => $settingValue) {
if ($settingName === 'app_analytics_pi_url') { if ($settingName === 'app_analytics_pi_url') {
$settingValue = rtrim($settingValue, '/'); $settingValue = rtrim($settingValue, '/');
} }