function _openid_encode_message _openid_encode_message($message) Encode a message from _openid_create_message for HTTP Post File
 modules/openid/openid.inc, line 349 OpenID utility functions.  Code function _openid_encode_message($message) {
  $encoded_message = '';

  $items = explode("\n", $message);
  foreach ($items as $item) {
    $parts = explode(':', $item, 2);

    if (count($parts) == 2) {
      if ($encoded_message != '') {
        $encoded_message .= '&';
      }
      $encoded_message .= rawurlencode(trim($parts[0])) . '=' . rawurlencode(trim($parts[1]));
    }
  }

  return $encoded_message;
}


    
{'path': 'public/docs/drupal~7/modules-openid-openid.inc/function/_openid_encode_message/7.x.html', 'source': 'DevDocs.IO'}