gladiopeace / opensocial-php-client

Automatically exported from code.google.com/p/opensocial-php-client
Apache License 2.0
0 stars 0 forks source link

Status post with apostrophe is not posted correctly #80

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
Use the sample script included in the opensocial-php-client. Uncomment the code 
to post a status mood update and add an apostrophe to the status text. for 
example:

$statusUpdate = $ms->updateStatus($userid, "Excited", "What's goin' wrong with 
this post?", array('latitude'=> '47.604832', 'longitude' => '-122.337549')); 

What is the expected output? What do you see instead?
The status message posted to the MySpace page should be
What's goin' wrong with this post?

What is posted is this: (spaces before ; added so it will display correctly in 
the html)
What&#39 ;s goin&#39 ; wrong with this post?

What version of the product are you using? On what operating system?
The current opensocial-php-client and PHP Version 5.3.6 on redhat linux and PHP 
Version 5.3.5 on OS X. Same result on both.

Please provide any additional information below.
I've tried other encoding options as well as using % equivalents with no 
success.

Original issue reported on code.google.com by bigja...@gmail.com on 20 Jul 2011 at 6:39