upload files fix
authorniekt0 <niekt0@kyberia.cz>
Wed, 3 Nov 2010 00:55:00 +0000 (01:55 +0100)
committerniekt0 <niekt0@kyberia.cz>
Wed, 3 Nov 2010 00:55:00 +0000 (01:55 +0100)
wwwroot/inc/eventz/upload_data_file.inc

index ea00274f74a1fcb5f453dbba864a920262d449a2..070d7581127043fa0e9ce0a56b13a2252cc6dfeb 100644 (file)
@@ -26,6 +26,8 @@ function upload_data_file() {
                 mkdir(FILE_DIR.$_SESSION['user_id']);
        }
 
+       $suffix = array_pop(explode('.', basename($_FILES['data_file']['name'])));
+
        if ($suffix=='zip' && $_POST['unzip']) {
                mkdir(TMP."/".$_FILES['data_file']['name']);
 
This page took 0.143632 seconds and 4 git commands to generate.