]> git.p6c8.net - jirafeau/jirafeau.git/blobdiff - lib/config.original.php
Escape the disallowed extensions list in the upload form's onchange attribute
[jirafeau/jirafeau.git] / lib / config.original.php
index e77684bda429dd0c3e8c54a6ff738b119e6382c9..2be4e52bdb0d51476494f1d6f9d0a938cb8dce32 100644 (file)
@@ -170,6 +170,13 @@ $cfg['one_time_download_preselected'] = false;
  */
 $cfg['maximal_upload_size'] = 0;
 
  */
 $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.
 /* Proxy IP
  * If the installation is behind some reverse proxies, it is possible to set
  * the allowed proxy IP.
@@ -235,9 +242,9 @@ $cfg['installation_done'] = false;
  */
 $cfg['debug'] = false;
 
  */
 $cfg['debug'] = false;
 
-/* Enable this debug flag to enforce the legacy (synchronous) file upload mechanism.
+/* Enable this debug flag to enforce the classic (synchronous) file upload mechanism.
  */
  */
-$cfg['debug_enforce_legacy_upload'] = false;
+$cfg['debug_enforce_classic_upload'] = false;
 
 /* Set Jirafeau's maximal upload chunk
  * When Jirafeau upload a large file, Jirafeau sends several data chunks to fit server's capabilities.
 
 /* Set Jirafeau's maximal upload chunk
  * When Jirafeau upload a large file, Jirafeau sends several data chunks to fit server's capabilities.

patrick-canterino.de