diff options
author | Thomas Bruederli <thomas@roundcube.net> | 2014-04-23 20:56:10 +0200 |
---|---|---|
committer | Thomas Bruederli <thomas@roundcube.net> | 2014-04-23 20:56:10 +0200 |
commit | 5b6d09ad29e4f1695689bd6b24d681c4f926ea4b (patch) | |
tree | 9be94a09514595a81ed551d9165c1e34c898d4d3 /bin/deluser.sh | |
parent | dd5b2c5e6c1b39c151ed9f6689f97dde32b71a6e (diff) |
Configured host can be a URL
Diffstat (limited to 'bin/deluser.sh')
-rwxr-xr-x | bin/deluser.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/bin/deluser.sh b/bin/deluser.sh index 84c8446ec..f12ec9032 100755 --- a/bin/deluser.sh +++ b/bin/deluser.sh @@ -58,6 +58,12 @@ if (empty($args['host'])) { else { _die("Specify a host name", true); } + + // host can be a URL like tls://192.168.12.44 + $host_url = parse_url($args['host']); + if ($host_url['host']) { + $args['host'] = $host_url['host']; + } } // connect to DB |