We should make sure that requests sent to the server are valid.

This patch is on top of #3070616: Various minor fixes.

Comments

tstoeckler created an issue. See original summary.

jan.stoeckler’s picture

Awesome! Should we also add a check for the existence of the actual image (file) or is that not a good idea? If not, why not? Thanks!

jan.stoeckler’s picture

This (#3) approach seems a bit naive and might potentially expose the existence of files that should not be exposed. Maybe add further checks for extension or mime-type of target file? Thankful for any guidance!