]> git.p6c8.net - jirafeau.git/blobdiff - script.php
Fix upload IP check
[jirafeau.git] / script.php
index 90b2c119e02d5ef7e727b613b8009afa683622b3..aa04a6fd5e99e99f640da8b5dbf261e558f844f0 100644 (file)
@@ -81,7 +81,6 @@ if (isset($_FILES['file']) && is_writable(VAR_FILES)
             exit;
         }
     }
-    
     $key = '';
     if (isset($_POST['key'])) {
         $key = $_POST['key'];
@@ -204,8 +203,7 @@ if (isset($_FILES['file']) && is_writable(VAR_FILES)
     }
     exit;
 } elseif (isset($_GET['get_capacity'])) {
-    echo min(jirafeau_ini_to_bytes(ini_get('post_max_size')),
-              jirafeau_ini_to_bytes(ini_get('upload_max_filesize')));
+    echo jirafeau_get_max_upload_size_bytes();
 } elseif (isset($_GET['get_maximal_upload_size'])) {
     echo $cfg['maximal_upload_size'];
 } elseif (isset($_GET['get_version'])) {

patrick-canterino.de