You are here

function OAuthRequest::urldecode in Lingotek Translation 7.2

Same name and namespace in other branches
  1. 7.3 lib/oauth-php/library/OAuthRequest.php \OAuthRequest::urldecode()

* Decode a string according to RFC3986. * Also correctly decodes RFC1738 urls. * *

Parameters

string s: * @return string

3 calls to OAuthRequest::urldecode()
OAuthRequest::checks in lib/oauth-php/library/OAuthRequest.php
* Perform some sanity checks. * * @exception OAuthException2 thrown when sanity checks failed
OAuthRequest::getParam in lib/oauth-php/library/OAuthRequest.php
* Get a parameter, value is always urlencoded * *
OAuthRequestVerifier::verifyExtended in lib/oauth-php/library/OAuthRequestVerifier.php
* Verify the request * *

File

lib/oauth-php/library/OAuthRequest.php, line 630

Class

OAuthRequest
Object to parse an incoming OAuth request or prepare an outgoing OAuth request

Code

function urldecode($s) {
  if ($s === false) {
    return $s;
  }
  else {
    return rawurldecode($s);
  }
}