plugins/SpecialUpdownload.php
changeset 372 5bd429428101
parent 366 7e16181545e1
child 387 92664d2efab8
equal deleted inserted replaced
371:dc6026376919 372:5bd429428101
    68     {
    68     {
    69       die_friendly($lang->get('upload_err_title'), '<p>' . $lang->get('upload_err_too_big_or_small') . '</p>');
    69       die_friendly($lang->get('upload_err_title'), '<p>' . $lang->get('upload_err_too_big_or_small') . '</p>');
    70     }
    70     }
    71     
    71     
    72     $types = fetch_allowed_extensions();
    72     $types = fetch_allowed_extensions();
    73     $ext = substr($file['name'], strrpos($file['name'], '.')+1, strlen($file['name']));
    73     $ext = strtolower(substr($file['name'], strrpos($file['name'], '.')+1, strlen($file['name'])));
    74     if ( !isset($types[$ext]) || ( isset($types[$ext]) && !$types[$ext] ) )
    74     if ( !isset($types[$ext]) || ( isset($types[$ext]) && !$types[$ext] ) )
    75     {
    75     {
    76       die_friendly($lang->get('upload_err_title'), '<p>' . $lang->get('upload_err_banned_ext', array('ext' => htmlspecialchars($ext))) . '</p>');
    76       die_friendly($lang->get('upload_err_title'), '<p>' . $lang->get('upload_err_banned_ext', array('ext' => htmlspecialchars($ext))) . '</p>');
    77     }
    77     }
    78     $type = $mime_types[$ext];
    78     $type = $mime_types[$ext];