You are here

function OAuthRequest::urltranscode in Lingotek Translation 7.2

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

* urltranscode - make sure that a value is encoded using RFC3986. * We use a basic urldecode() function so that any use of '+' as the * encoding of the space character is correctly handled. * *

Parameters

string s: * @return string

1 call to OAuthRequest::urltranscode()
OAuthRequest::transcodeParams in lib/oauth-php/library/OAuthRequest.php
* Re-encode all parameters so that they are encoded using RFC3986. * Updates the $this->param attribute.

File

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

Class

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

Code

function urltranscode($s) {
  if ($s === false) {
    return $s;
  }
  else {
    return $this
      ->urlencode(rawurldecode($s));

    // return $this->urlencode(urldecode($s));
  }
}