security guidelines
-
Hi all,
I have troubles replacing simple text files with a .dat-extension. The function
wp_check_filetype_and_ext
seems to return an empty result, causing the error'File type does not meet security guidelines. Try another.'
The user-setting ‘unfiltered_upload’ had no effect. I’ve further updated
wp_get_ext_types
and appended the extension .dat to filter ‘text’, which had no effect either. The only option was to uncomment the respective lines in upload.php.What would be the correct way to allow for an upload of simple text files (with arbitrary extension)? I understand that it is necessary to check binary files to avoid the distribution of maleware. But a text file should not be as critical, although it may contain malicious script code.
Thank you!
- The topic ‘security guidelines’ is closed to new replies.