file upload with apostrophe in filename
Hoping for some guidance here if anyone can assist.
I have a form for applications, applicants fill the form, and upload a resume. I also have a backend administration area where human resources can view the applications and make notes on each one.
An unforeseen issue has popped up recently where applicants will upload a resume and include an apostrophe in the file name as in - john doe's resume.pdf -
Somewhere in the process the actual file name gets re-written to john doe\'s resume.pdf and as such the backend admin area can not find the link to that particular file.
As I understand it this addition of the forward slash is a security feature. My question is how can I and where can I alter the code to just have an apostrophe truncated so the file is rewritten as john does resume.pdf with no apostrophe and no forward slash?