Sanitizing file & directory form input

Question

I’m looking to sanitize admin form input for update_option. The input is for a directory path and file name. The input will look like this:

/directory/subdirectory/

and

/thisfile.min.js

So far, every sanitize I’ve tried strips out the forward slashes. Any suggestions?

0
uPrompt 2 months 0 Answers 11 views 0

Leave an answer