From 06ec5424c763f3dce0029d0b5ff5c47b94abdf7b Mon Sep 17 00:00:00 2001 From: redmatrix Date: Wed, 28 Oct 2015 16:58:13 -0700 Subject: restrict sslify to img tags by default - set config system.sslify_everything if you want to proxy media files also. --- include/api.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include/api.php') diff --git a/include/api.php b/include/api.php index 73f4f57d0..ad29625d8 100644 --- a/include/api.php +++ b/include/api.php @@ -75,8 +75,9 @@ require_once('include/attach.php'); try { $oauth = new FKOAuth1(); $req = OAuthRequest::from_request(); + list($consumer,$token) = $oauth->verify_request($req); -// list($consumer,$token) = $oauth->verify_request(OAuthRequest::from_request()); + if (!is_null($token)){ $oauth->loginUser($token->uid); -- cgit v1.2.3