]> git.immae.eu Git - github/shaarli/Shaarli.git/blobdiff - application/config/ConfigManager.php
Add a whitelist of protocols for URLs
[github/shaarli/Shaarli.git] / application / config / ConfigManager.php
index 86a917fb12c2fa0c23c5a4a83c99e4ab4afb44bd..8eab26f1264e58f0288d3f61fe5c04434b445ed5 100644 (file)
@@ -312,6 +312,7 @@ class ConfigManager
         $this->setEmpty('security.ban_duration', 1800);
         $this->setEmpty('security.session_protection_disabled', false);
         $this->setEmpty('security.open_shaarli', false);
+        $this->setEmpty('security.allowed_protocols', ['ftp', 'ftps', 'magnet']);
 
         $this->setEmpty('general.header_link', '?');
         $this->setEmpty('general.links_per_page', 20);