static function OAuthBodyContentDisposition::encodeParameterName in Lingotek Translation 7.4
Same name and namespace in other branches
- 7.7 lib/oauth-php/library/body/OAuthBodyContentDisposition.php \OAuthBodyContentDisposition::encodeParameterName()
- 7.2 lib/oauth-php/library/body/OAuthBodyContentDisposition.php \OAuthBodyContentDisposition::encodeParameterName()
- 7.3 lib/oauth-php/library/body/OAuthBodyContentDisposition.php \OAuthBodyContentDisposition::encodeParameterName()
- 7.5 lib/oauth-php/library/body/OAuthBodyContentDisposition.php \OAuthBodyContentDisposition::encodeParameterName()
- 7.6 lib/oauth-php/library/body/OAuthBodyContentDisposition.php \OAuthBodyContentDisposition::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 OAuthBodyContentDisposition::encodeParameterName()
- OAuthBodyContentDisposition::encodeBody in lib/
oauth-php/ library/ body/ OAuthBodyContentDisposition.php - Builds the request string.
File
- lib/
oauth-php/ library/ body/ OAuthBodyContentDisposition.php, line 119
Class
- OAuthBodyContentDisposition
- Add the extra headers for a PUT or POST request with a file.
Code
static function encodeParameterName($name) {
return preg_replace('/[^\\x20-\\x7f]|"/', '-', $name);
}