Mombu the Php Forum sponsored links

Go Back   Mombu the Php Forum > Php > #31757 : $_FILES returns entire directory with IE
User Name
Password
REGISTER NOW! Mark Forums Read

sponsored links


Reply
 
1 8th March 02:09
php-bugs
External User
 
Posts: 1
Default #31757 : $_FILES returns entire directory with IE



ID: 31757
Comment by: none at null dot ***
Reported By: andrew at eiknet dot com
Status: Open
Bug Type: *Directory/Filesystem functions
Operating System: RH Linux 8
PHP Version: 4CVS-2005-01-30 (stable)
New Comment:

I don't think this is a bug in PHP, it's a questionable design feature
of IE. PHP is just returning the unmodified filename supplied by the
client as part of the upload process. If you wish to obtain just the
filename you should probably use basename($_FILES['userfile']['name']).


Previous Comments:
------------------------------------------------------------------------

[2005-01-30 01:01:27] andrew at eiknet dot com

Description:
------------
While uploading a file using a script the $_FILES['userfile']['name']
variable returns the entire upload path, but only when using IE. The
issue does not show up using Firefox.

Using IE:

$_FILES['userfile']['name'] -> C:\Do***ents and
Settings\RARankin\Desktop\groupe_alliance_2004_gb. jpg

Using Firefox:

$_FILES['userfile']['name'] -> groupe_alliance_2004_gb.jpg

Didnt happen before updating to 4.3.10+, I'm using a dev version due to
compilation errors w/ GD in *.10.

Error showed itself w/ phpBB's attachment modification.

Andrew

------------------------------------------------------------------------


--
Edit this bug report at http://bugs.php.net/?id=31757&edit=1
  Reply With Quote


  sponsored links


Reply


Thread Tools
Display Modes




Copyright © 2006 SmartyDevil.com - Dies Mies Jeschet Boenedoesef Douvema Enitemaus -
666