QF - getValue() on file element returns not 'cleaned' file name

From: Date: Wed, 21 Apr 2004 12:48:39 +0000
Subject: QF - getValue() on file element returns not 'cleaned' file name
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-11992@lists.php.net to get a copy of this message
Hi all! I've found that doing something like this: $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" Isn't file element cleaned if magic quotes is ON like other elements? Should I strip slashes myself from file's name? Has somebody encountered that problem? Thanks in advance for any reply. -- Best regards, Sebastian

« previous php.pear.general (#11992) next »