Do you have magic quotes on?

Also, try a >*print_r($_SERVER);*
or even a   >*var_dump($_GET);*
See what's actually in the arrays.

Michael Kubler
*G*rey *P*hoenix *P*roductions <http://www.greyphoenix.biz>



John Corry wrote:
I am completely baffled by this.

I have a PHP script that is using Cameron Hinkle's LightweightPicasaAPIv3 to authenticate with the Google Picasa service using the AuthSub method.

Basically, if we're not authenticated, redirect to the google authsub URL: (https://www.google.com/accounts/AuthSubRequest?next=http%3A%2F%2Ftwozerowest.com%2Fsnowdog%2520gallery%2Fadmin.php&scope=http%3A%2F%2Fpicasaweb.google.com%2Fdata%2Ffeed%2Fapi&session=1)

This page requests that the user either grant access or deny access.

Grant access takes us to the URL specified (my authentication script) with a ?token=xxxxx added to the end of the URL.

This all works. We get back to my URL with ?token=xxxxx appended to the URL.

That's when it starts getting weirder than anything I've seen in PHP:
My debugging output confirms that:
1. $_SERVER['request_method'] = GET
2. strlen($_GET['token']) = 0
3. $_GET - array()...but it's empty!
4. $_REQUEST[] contains no 'token' element
5. echo($_GET['token']) prints the value of ?token= from the URL

So WTF?

Reply via email to