Fix bug #10: OAuth does not work on ovh.com server
authorChristian Weiske <cweiske@cweiske.de>
Wed, 8 Oct 2014 19:24:35 +0000 (21:24 +0200)
committerChristian Weiske <cweiske@cweiske.de>
Wed, 8 Oct 2014 19:24:35 +0000 (21:24 +0200)
commitdab31d3882a398d5f459a0aca71b2e35ab641708
tree2b74a0a3a9296d98b6dbe3a0c49954e6b55ac5e6
parent9b69209d884a6d01e890ec3360cb88fe7cf64f6a
Fix bug #10: OAuth does not work on ovh.com server

This ovh.com server always has $_SERVER['HTTP_AUTHORIZATION'] set.
By default it has an empty string as value, and this breaks the PHP
OAuth extension - see https://bugs.php.net/bug.php?id=68168

We work around that by forcing the signature method in this special case,
so that no exception is thrown.

Thanks to Julien Daviaud for giving me access to his server for debugging.
lib/oauth.php