note 99743 deleted from oauth.examples.fireeagle by danbrown
| From: | danbrown@php.net | Date: | Thu, 02 Sep 2010 15:24:36 +0000 |
| Subject: | note 99743 deleted from oauth.examples.fireeagle by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-172273@lists.php.net to get a copy of this message | ||
Note Submitter: tom at punkave dot com
----
The sample code presented will fail when PHP warnings are turned on and displaying in the browser.
That's because the warnings preempt the redirects. To fix that add isset() checks before
checking $_SESSION['state'].