Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 3.2.16

Bug #1252 getValue() on file element returns not 'cleaned' file name
Submitted: 2004-04-21 13:13 UTC
From: Sebastian[c u t me] dot Baran at dialcom dot com dot pl Assigned: avb
Status: Closed Package: HTML_QuickForm
PHP Version: Irrelevant OS:
Roadmaps: (Not assigned)    
Subscription  


 [2004-04-21 13:13 UTC] Sebastian[c u t me] dot Baran at dialcom dot com dot pl
Description: ------------ HTML_QuickForm - 3.2.2 ------------------------ $file_elem=$form->getElement('my_file'); .. .. $tmp=$file_elem->getValue(); when uploaded file's name contains ' and magic_quotes_gpc is ON gives filename backslashed. It's for example in French language: "Détails D'Ordre.doc" becomes "Détails D\'Ordre.doc" Reproduce code: --------------- // magic_quotes_gpc MUST BE ON! $form->addElement('file', 'myfile', 'File to upload:'); $file_elem=$form->getElement('myfile'); .. .. $tmp=$file_elem->getValue(); var_dump($tmp); then upload file with ' in name ("Détails D'Ordre.doc") Expected result: ---------------- "Détails D'Ordre.doc" as file name Actual result: -------------- "Détails D\'Ordre.doc" as file name

Comments

 [2004-05-08 13:43 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!
 [2004-05-12 10:38 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!