Re: cvs: phpdoc /en/reference/filesystem/functions is-uploaded-file.xml

From: Date: Mon, 14 Feb 2005 19:35:34 +0000
Subject: Re: cvs: phpdoc /en/reference/filesystem/functions is-uploaded-file.xml
References: 1 2 3  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969366590@lists.php.net to get a copy of this message
Gabor Hojtsy wrote:
+if (is_uploaded_file($_FILES['userfile']['tmp_name'])) {
I think this check is superfluous. $_FILES['userfile']['tmp_name'] always contain an uploaded file.
Well, not if some maliciosly included code dealt with the files array before... But then that maliciosly included code would be able to do anything anyway :) Goba
is_uploaded_file is a register_globals artifact, and shouldn't need to be used with the $_FILES array. S

« previous php.doc (#969366590) next »