You are here

static function OAuthBodyMultipartFormdata::encodeParameterName in Lingotek Translation 7.7

Same name and namespace in other branches
  1. 7.2 lib/oauth-php/library/body/OAuthBodyMultipartFormdata.php \OAuthBodyMultipartFormdata::encodeParameterName()
  2. 7.3 lib/oauth-php/library/body/OAuthBodyMultipartFormdata.php \OAuthBodyMultipartFormdata::encodeParameterName()
  3. 7.4 lib/oauth-php/library/body/OAuthBodyMultipartFormdata.php \OAuthBodyMultipartFormdata::encodeParameterName()
  4. 7.5 lib/oauth-php/library/body/OAuthBodyMultipartFormdata.php \OAuthBodyMultipartFormdata::encodeParameterName()
  5. 7.6 lib/oauth-php/library/body/OAuthBodyMultipartFormdata.php \OAuthBodyMultipartFormdata::encodeParameterName()

* Encode a parameter's name for use in a multipart header. * For now we do a simple filter that removes some unwanted characters. * We might want to implement RFC1522 here. See http://tools.ietf.org/html/rfc1522 * *

Parameters

string name: * @return string

1 call to OAuthBodyMultipartFormdata::encodeParameterName()
OAuthBodyMultipartFormdata::encodeBody in lib/oauth-php/library/body/OAuthBodyMultipartFormdata.php
Builds the request string.

File

lib/oauth-php/library/body/OAuthBodyMultipartFormdata.php, line 133

Class

OAuthBodyMultipartFormdata
Create the body for a multipart/form-data message.

Code

static function encodeParameterName($name) {
  return preg_replace('/[^\\x20-\\x7f]|"/', '-', $name);
}