Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/bestpractical/rt.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorWallace Reis <wreis@bestpractical.com>2014-09-25 20:17:19 +0400
committerWallace Reis <wreis@bestpractical.com>2014-09-25 20:17:19 +0400
commita2a96a2b26c2e524836c8698710b16334c478576 (patch)
treedd570ce23c782f75a6e41b8998482487abfb5b4d /bin
parent542ebd3a6d0561522db13f6685c9ad8a4d36ee0b (diff)
parentebc94047bda030bd6881d641d1eab796197fe15e (diff)
Merge branch '4.0/rt-server-display-name' into 4.0-trunk
Diffstat (limited to 'bin')
-rw-r--r--bin/rt.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/rt.in b/bin/rt.in
index 83c38acf6e..f9ff1e6151 100644
--- a/bin/rt.in
+++ b/bin/rt.in
@@ -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;
}