function backup_migrate_location_remote::set_url in Backup and Migrate 6.3
Same name and namespace in other branches
- 8.3 includes/locations.inc \backup_migrate_location_remote::set_url()
Break a URL into it's component parts.
Overrides backup_migrate_location::set_url
1 call to backup_migrate_location_remote::set_url()
- backup_migrate_location_remote::set_location in includes/
locations.inc - Return the location with the password.
File
- includes/
locations.inc, line 474
Class
- backup_migrate_location_remote
- A base class for creating locations.
Code
function set_url($url) {
$parts = (array) parse_url($url);
$parts['user'] = urldecode(@$parts['user']);
$parts['pass'] = urldecode(@$parts['pass']);
$parts['path'] = urldecode(@$parts['path']);
$parts['path'] = ltrim(@$parts['path'], "/");
$this->dest_url = $parts;
}