Ignore:
Timestamp:
Jul 1, 2013 7:45:33 PM (11 years ago)
Author:
anonymous
Message:

Disabled MX record check for email validation. Updated PEdit to work better with AcceptPathInfo? enabled.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/Upload.inc.php

    r396 r415  
    279279            // Check to be sure the file has a valid file name extension.
    280280            if (!in_array(mb_strtolower($this->getFilenameExtension($file_name)), $this->getParam('valid_file_extensions'))) {
     281                /// TODO: Add option to allow any extention to be uploaded.
    281282                $this->_raiseMsg(sprintf(_("The file %s failed uploading: it is an unrecognized type. Files must have one of the following file name extensions: %s."), $file_name, join(', ', $this->getParam('valid_file_extensions'))), MSG_ERR, __FILE__, __LINE__);
    282283                $app->logMsg(sprintf('The uploaded file %s has an unrecognized file name extension.', $file_name), LOG_WARNING, __FILE__, __LINE__);
     
    295296            // If the file name has no extension, use the mime-type to choose one.
    296297            if (!preg_match('/\.[^.]{1,5}$/', $file_name) && function_exists('mime_content_type')) {
     298                // TODO: will this run if an extention is filtered by 'valid_file_extensions'?
    297299                if ($ext = array_search(mime_content_type($files['tmp_name'][$i]), $this->mime_extension_map)) {
    298300                    $file_name .= ".$ext";
Note: See TracChangeset for help on using the changeset viewer.