Skip to content

Commit

Permalink
Merge pull request #14 from individual-it/trimAdminSettings
Browse files Browse the repository at this point in the history
trim admin settings before saving them
  • Loading branch information
Julien Veyssier committed Dec 29, 2021
2 parents 8321787 + 823440c commit d75a58d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Controller/ConfigController.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ public function setConfig(array $values): DataResponse {
*/
public function setAdminConfig(array $values): DataResponse {
foreach ($values as $key => $value) {
$this->config->setAppValue(Application::APP_ID, $key, $value);
$this->config->setAppValue(Application::APP_ID, $key, trim($value));
}
return new DataResponse(1);
}
Expand Down

0 comments on commit d75a58d

Please sign in to comment.