You are here

function _background_process_secure_url in Background Process 7.2

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 background_process.module \_background_process_secure_url()

Secure a URL by obfuscating the password if present.

Parameters

$url:

Return value

string URL

File

./background_process.http.inc, line 494
This contains the HTTP functions for Background Process.

Code

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