function _openid_create_message
Same name and namespace in other branches
- 7.x drupal-7.x/modules/openid/openid.inc \_openid_create_message()
Create a serialized message packet as per spec: $key:$value\n .
3 calls to _openid_create_message()
- openid_association in drupal-6.x/
modules/ openid/ openid.module - Attempt to create a shared secret with the OpenID Provider.
- openid_verify_assertion in drupal-6.x/
modules/ openid/ openid.module - Attempt to verify the response received from the OpenID Provider.
- _openid_signature in drupal-6.x/
modules/ openid/ openid.inc - Sign certain keys in a message
Archivo
- drupal-6.x/
modules/ openid/ openid.inc, line 130 - OpenID utility functions.
Código
function _openid_create_message($data) {
$serialized = '';
foreach ($data as $key => $value) {
if ((strpos($key, ':') !== FALSE) || (strpos($key, "\n") !== FALSE) || (strpos($value, "\n") !== FALSE)) {
return null;
}
$serialized .= "$key:$value\n";
}
return $serialized;
}