You are here

function LingotekOAuthRequest::urltranscode in Lingotek Translation 7.6

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

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

File

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

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