Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:83708 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 75085 invoked from network); 24 Feb 2015 22:31:08 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 Feb 2015 22:31:08 -0000 Authentication-Results: pb1.pair.com header.from=smalyshev@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=smalyshev@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.192.176 as permitted sender) X-PHP-List-Original-Sender: smalyshev@gmail.com X-Host-Fingerprint: 209.85.192.176 mail-pd0-f176.google.com Received: from [209.85.192.176] ([209.85.192.176:46383] helo=mail-pd0-f176.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 86/79-24698-BABFCE45 for ; Tue, 24 Feb 2015 17:31:08 -0500 Received: by pdjy10 with SMTP id y10so36468134pdj.13 for ; Tue, 24 Feb 2015 14:31:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=IWa+ASLx7B0bPxtUbAeJpPLBygT8hizZlIKTewpOHoc=; b=Bv2HIswOuF4VitQF8EqsN4Hvs8aOavyfP3bIgH4VzlyR1v8eET3qQIzYNNfXZ7g1UT hCGhRwdApDSAbfgan6Le2gnaHI3TvK2NtYzzrabSJshK2cSxHGAbfhdhyfhLZzlTjByN QV+Wt27RejjL2t3ibh2cfMbbXTBLCwWEr3VTyIro5rms5orla7gBmV2XUHWFrKYnksu7 UOuQW84SbrGQXqjyVHo0q5C37EJ1RDQjIBMVM3xSWVi+P3dWzF0/o4DgBMw77dqO6GHg g6gTodmqFLt3YSwW03+rgSXWuJ0DzwyWQDXDNsMIcHmloBKTv4ztPMLwEZXXkr8SanmW dM7w== X-Received: by 10.70.65.39 with SMTP id u7mr34357pds.79.1424817064863; Tue, 24 Feb 2015 14:31:04 -0800 (PST) Received: from Stas-Air.local (108-66-6-48.lightspeed.sntcca.sbcglobal.net. [108.66.6.48]) by mx.google.com with ESMTPSA id pp9sm39121310pbb.65.2015.02.24.14.31.03 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Feb 2015 14:31:04 -0800 (PST) Message-ID: <54ECFBA7.7080404@gmail.com> Date: Tue, 24 Feb 2015 14:31:03 -0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: Yasuo Ohgaki CC: =?UTF-8?B?UMOhZHJhaWMgQnJhZHk=?= , Dmitry Stogov , "internals@lists.php.net" , Nikita Popov References: <54ECD4E3.9040705@gmail.com> <54ECF605.7030506@gmail.com> In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] [RFC] Script only include/require From: smalyshev@gmail.com (Stanislav Malyshev) Hi! > I think he means matching file "extension". File extension should > represent file type, though. You can not rely on that. I can name files anything regardless of what's in the file. > Since "pwnd.php" has ".php" extension, move_uploaded_file() refuses to > move it > to upload dir by default. There's no pwnd.php. The file that I upload is "cuteponies.gif". Please look at the sequence again carefully. -- Stas Malyshev smalyshev@gmail.com