diff options
author | Morris Jobke <hey@morrisjobke.de> | 2017-02-21 17:22:06 -0600 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2017-02-21 17:22:06 -0600 |
commit | 8e3d0fecd237a457fe66e00bc293923dae9a5adf (patch) | |
tree | a92841d5891fed07968c3bb55afb147d728b7312 /lib/private/Template | |
parent | 3284efd1996854df0252d3e40574759e698b812d (diff) | |
download | nextcloud-server-8e3d0fecd237a457fe66e00bc293923dae9a5adf.tar.gz nextcloud-server-8e3d0fecd237a457fe66e00bc293923dae9a5adf.zip |
Use intval() for validation of config options
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'lib/private/Template')
-rw-r--r-- | lib/private/Template/JSConfigHelper.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/Template/JSConfigHelper.php b/lib/private/Template/JSConfigHelper.php index 7a4e8415e7d..6bf08dcdada 100644 --- a/lib/private/Template/JSConfigHelper.php +++ b/lib/private/Template/JSConfigHelper.php @@ -207,8 +207,8 @@ class JSConfigHelper { 'enable_avatars' => true, // here for legacy reasons - to not crash existing code that relies on this value 'lost_password_link'=> $this->config->getSystemValue('lost_password_link', null), 'modRewriteWorking' => ($this->config->getSystemValue('htaccess.IgnoreFrontController', false) === true || getenv('front_controller_active') === 'true'), - 'sharing.maxAutocompleteResults' => $this->config->getSystemValue('sharing.maxAutocompleteResults', 0), - 'sharing.minSearchStringLength' => $this->config->getSystemValue('sharing.minSearchStringLength', 0), + 'sharing.maxAutocompleteResults' => intval($this->config->getSystemValue('sharing.maxAutocompleteResults', 0)), + 'sharing.minSearchStringLength' => intval($this->config->getSystemValue('sharing.minSearchStringLength', 0)), ]), "oc_appconfig" => json_encode([ 'core' => [ |