Clean the value on saving of the setting

This commit is contained in:
James Brooks
2015-06-23 08:11:39 +01:00
parent 0c940adc56
commit e68467a308
2 changed files with 5 additions and 1 deletions

View File

@@ -172,6 +172,10 @@ class SettingsController extends AbstractController
try {
foreach (Binput::except(['app_banner', 'remove_banner']) as $settingName => $settingValue) {
if ($settingName === 'app_analytics_pi_url') {
$settingValue = rtrim($settingValue, '/');
}
Setting::firstOrCreate([
'name' => $settingName,
])->update([