$_FILES removes the single quote from file name
Posted: Fri May 12, 2006 6:13 am
Hey all,
Im working on a file upload script, but when i execute: the single quote and anything before it does not show up.
Example, if the file name is O'Reily, returns only Reily
Here is an example of what im using:
Thanks.
PS: get_magic_quotes_gpc is set to "On" FYI
Im working on a file upload script, but when i execute:
Code: Select all
echo $_FILES['file_field]['name'];Example, if the file name is O'Reily,
Code: Select all
echo $_FILES['file_field]['name'];Here is an example of what im using:
Code: Select all
$_FILES['file_field']['name'] = addslashes($_FILES['file_field']['name']);
echo $_FILES['file_field']['name'];PS: get_magic_quotes_gpc is set to "On" FYI