Implement path traversal safeguards for image uploads as well
consolidate safeguards in utils.js
I'm sorry I didn't discover these before my previous PR - they were not detected by SonarCloud - and so I didn't immediately see them. I double checked that prettier is happy with these changes.
I'm sorry I didn't discover these before my previous PR - they were not detected by SonarCloud - and so I didn't immediately see them. I double checked that prettier is happy with these changes.