diff options
author | Wallace Reis <wreis@bestpractical.com> | 2014-09-25 20:17:19 +0400 |
---|---|---|
committer | Wallace Reis <wreis@bestpractical.com> | 2014-09-25 20:17:19 +0400 |
commit | a2a96a2b26c2e524836c8698710b16334c478576 (patch) | |
tree | dd570ce23c782f75a6e41b8998482487abfb5b4d /bin | |
parent | 542ebd3a6d0561522db13f6685c9ad8a4d36ee0b (diff) | |
parent | ebc94047bda030bd6881d641d1eab796197fe15e (diff) |
Merge branch '4.0/rt-server-display-name' into 4.0-trunk
Diffstat (limited to 'bin')
-rw-r--r-- | bin/rt.in | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1035,7 +1035,7 @@ sub submit { # Should we send authentication information to start a new session? my $how = $config{server} =~ /^https/ ? 'over SSL' : 'unencrypted'; - (my $server = $config{server}) =~ s/^.*\/\/([^\/]+)\/?/$1/; + my($server) = $config{server} =~ m{^.*//([^/]+)}; if ($config{externalauth}) { $h->authorization_basic($config{user}, $config{passwd} || read_passwd() ); print " Password will be sent to $server $how\n", @@ -1080,7 +1080,7 @@ sub submit { # "RT/3.0.1 401 Credentials required" if ($status !~ m#^RT/\d+(?:\S+) (\d+) ([\w\s]+)$#) { - warn "rt: Malformed RT response from $config{server}.\n"; + warn "rt: Malformed RT response from $server.\n"; warn "(Rerun with RTDEBUG=3 for details.)\n" if $config{debug} < 3; exit -1; } |