From b9e6f5e42d54fc91205f03f4b19bbf313278f476 Mon Sep 17 00:00:00 2001 From: Michiel de Jong Date: Wed, 7 Dec 2011 21:51:47 +0700 Subject: compliance with http://www.w3.org/community/unhosted/wiki/remoteStorage --- apps/remoteStorage/oauth_ro_auth.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'apps/remoteStorage/oauth_ro_auth.php') diff --git a/apps/remoteStorage/oauth_ro_auth.php b/apps/remoteStorage/oauth_ro_auth.php index b785d85fead..5403fbe20c9 100644 --- a/apps/remoteStorage/oauth_ro_auth.php +++ b/apps/remoteStorage/oauth_ro_auth.php @@ -13,6 +13,7 @@ * @author Evert Pot (http://www.rooftopsolutions.nl/) * @license http://code.google.com/p/sabredav/wiki/License Modified BSD License */ + class OC_Connector_Sabre_Auth_ro_oauth extends Sabre_DAV_Auth_Backend_AbstractBasic { private $validTokens; @@ -52,7 +53,7 @@ die('not getting in with "'.$username.'"/"'.$password.'"!'); $auth->setRealm($realm); $userpass = $auth->getUserPass(); if (!$userpass) { - if(in_array($_SERVER['REQUEST_METHOD'], array('GET', 'HEAD', 'OPTIONS'))) { + if(in_array($_SERVER['REQUEST_METHOD'], array('OPTIONS'))) { $userpass = array('', ''); } else { $auth->requireLogin(); -- cgit v1.2.3