diff options
author | ArthurHoaro <arthur@hoa.ro> | 2016-08-02 12:54:55 +0200 |
---|---|---|
committer | ArthurHoaro <arthur@hoa.ro> | 2016-08-02 12:54:55 +0200 |
commit | b9f8b83790a57b55f7d12471460537a268a24642 (patch) | |
tree | 1e42039b149a92dd2fcfe7ffbca42d236246a60b /application/Updater.php | |
parent | efc0c865ba914e75a6c3c9220450d13f752c7afa (diff) | |
download | Shaarli-b9f8b83790a57b55f7d12471460537a268a24642.tar.gz Shaarli-b9f8b83790a57b55f7d12471460537a268a24642.tar.zst Shaarli-b9f8b83790a57b55f7d12471460537a268a24642.zip |
Fix update method escapeUnescapedConfig
* Actually run it
* unit tests
Fixes #611
Diffstat (limited to 'application/Updater.php')
-rw-r--r-- | application/Updater.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/application/Updater.php b/application/Updater.php index fd45d17f..b6cbc56c 100644 --- a/application/Updater.php +++ b/application/Updater.php | |||
@@ -198,11 +198,11 @@ class Updater | |||
198 | * Escape settings which have been manually escaped in every request in previous versions: | 198 | * Escape settings which have been manually escaped in every request in previous versions: |
199 | * - general.title | 199 | * - general.title |
200 | * - general.header_link | 200 | * - general.header_link |
201 | * - extras.redirector | 201 | * - redirector.url |
202 | * | 202 | * |
203 | * @return bool true if the update is successful, false otherwise. | 203 | * @return bool true if the update is successful, false otherwise. |
204 | */ | 204 | */ |
205 | public function escapeUnescapedConfig() | 205 | public function updateMethodEscapeUnescapedConfig() |
206 | { | 206 | { |
207 | try { | 207 | try { |
208 | $this->conf->set('general.title', escape($this->conf->get('general.title'))); | 208 | $this->conf->set('general.title', escape($this->conf->get('general.title'))); |