Re: CURL file posting

From: Date: Mon, 12 Mar 2012 19:36:40 +0000
Subject: Re: CURL file posting
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-58883@lists.php.net to get a copy of this message
On Sun, March 11, 2012 6:29 pm, Stas Malyshev wrote: > Hi! > >> I'd sure like a PHP extension that didn't have this obvious and >> nasty bug: >> >> https://bugs.php.net/bug.php?id=46439 > > This doesn't look good. Documentation does say the @ prefix exists, > but > it has very high potential of creating security holes for unsuspecting > people. open_basedir would help limit the impact, but still it's not a > good thing. Any ideas on fixing it without breaking the BC? Ouch. Issue an E_NOTICE when it happens? Add a new CURLOPT_FILEFIELDS that takes an array of the parameters that are supposed to be files, so the ones that are expected to have "@..." do not fire the E_NOTICE. Issuing E_NOTICE is a BC, I suppose, but you'd think people would appreciate an alert about a potential security threat... -- brain cancer update: http://richardlynch.blogspot.com/search/label/brain%20tumor Donate: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=FS9NLTNEEKWBE

« previous php.internals (#58883) next »