Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 0.2.14

Bug #17280 error with values beginning with at sign (@)
Submitted: 2010-03-30 16:46 UTC
From: janmatousek Assigned:
Status: Open Package: Services_Facebook (version SVN)
PHP Version: Irrelevant OS:
Roadmaps: (Not assigned)    
Subscription  


 [2010-03-30 16:46 UTC] janmatousek (Jan Matousek)
Description: ------------ In Services_Facebook_Common, method sendRequest, this construct is used: curl_setopt($ch, CURLOPT_POSTFIELDS, $args); Correct version would be curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($args)); because otherwise of one of $args values begins with "@", it will be interpreted as file name and error "failed creating formpost data" will be raised (http://bugs.php.net/bug.php?id=50060)

Comments

 [2010-03-31 09:04 UTC] doconnor (Daniel O'Connor)
Cough: HTTP_Request2 ftw