You are here

function LingotekOAuthRequest::urltranscode in Lingotek Translation 7.7

Same name and namespace in other branches
  1. 7.4 lib/oauth-php/library/LingotekOAuthRequest.php \LingotekOAuthRequest::urltranscode()
  2. 7.5 lib/oauth-php/library/LingotekOAuthRequest.php \LingotekOAuthRequest::urltranscode()
  3. 7.6 lib/oauth-php/library/LingotekOAuthRequest.php \LingotekOAuthRequest::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

File

lib/oauth-php/library/LingotekOAuthRequest.php, line 566

Class

LingotekOAuthRequest
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));
  }
}