Changeset View
Changeset View
Standalone View
Standalone View
src/applications/oauthserver/PhabricatorOAuthServer.php
| Show First 20 Lines • Show All 192 Lines • ▼ Show 20 Lines | public function validateAccessToken( | ||||
| return $valid; | return $valid; | ||||
| } | } | ||||
| /** | /** | ||||
| * See http://tools.ietf.org/html/draft-ietf-oauth-v2-23#section-3.1.2 | * See http://tools.ietf.org/html/draft-ietf-oauth-v2-23#section-3.1.2 | ||||
| * for details on what makes a given redirect URI "valid". | * for details on what makes a given redirect URI "valid". | ||||
| */ | */ | ||||
| public function validateRedirectURI(PhutilURI $uri) { | public function validateRedirectURI(PhutilURI $uri) { | ||||
| if (!PhabricatorEnv::isValidRemoteWebResource($uri)) { | if (!PhabricatorEnv::isValidRemoteURIForLink($uri)) { | ||||
| return false; | return false; | ||||
| } | } | ||||
| if ($uri->getFragment()) { | if ($uri->getFragment()) { | ||||
| return false; | return false; | ||||
| } | } | ||||
| if (!$uri->getDomain()) { | if (!$uri->getDomain()) { | ||||
| ▲ Show 20 Lines • Show All 63 Lines • Show Last 20 Lines | |||||