mirror of
https://github.com/CachetHQ/Cachet.git
synced 2025-01-17 21:49:01 +01:00
Merge pull request #1502 from CachetHQ/ignore-token-field
Ignore the _token field when updating settings
This commit is contained in:
commit
3cb6ba237c
@ -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, '/');
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user