You are here

function _background_process_secure_url in Background Process 7

Same name and namespace in other branches
  1. 8 background_process.module \_background_process_secure_url()
  2. 6 background_process.module \_background_process_secure_url()
  3. 7.2 background_process.http.inc \_background_process_secure_url()

Secure a URL by obfuscating the password if present.

Parameters

string $url: The URL

Return value

string Secure URL

1 call to _background_process_secure_url()
background_process_determine_and_save_default_service_host in ./background_process.module
Determines the default service host and stores it in the variable storage.

File

./background_process.module, line 1585

Code

function _background_process_secure_url($url) {
  $url = parse_url($url);
  if (!empty($url['pass'])) {
    $url['pass'] = 'XXXXXXXX';
  }
  return _background_process_unparse_url($url);
}