Thanks for your plugin.
If an user upload a file with more white spaces in the filename your script use sanitize_text_field to delete them. But now there are a difference between the real file name and the fileName in data base.
Ok, we can replace sanitize_text_field($_POST[‘file-name’]); with $_POST[‘file-name’]; in upload-form.php but it is the best solution?
- The topic ‘sanitize_text_field problem’ is closed to new replies.