]> git.p6c8.net - jirafeau/pcanterino.git/blobdiff - lib/config.original.php
Add disallowed_extensions config with server and client validation
[jirafeau/pcanterino.git] / lib / config.original.php
index 37c87ebc573d6d6db4637d2c815c658980291c5c..2be4e52bdb0d51476494f1d6f9d0a938cb8dce32 100644 (file)
@@ -170,6 +170,13 @@ $cfg['one_time_download_preselected'] = false;
  */
 $cfg['maximal_upload_size'] = 0;
 
+/* Forbid specific file extensions from being uploaded.
+ * Leave empty to allow every extension.
+ * Extensions are matched case-insensitively and without the leading dot.
+ * $cfg['disallowed_extensions'] = array('exe', 'bat', 'sh', 'php');
+ */
+$cfg['disallowed_extensions'] = array();
+
 /* Proxy IP
  * If the installation is behind some reverse proxies, it is possible to set
  * the allowed proxy IP.

patrick-canterino.de