[Rt-commit] [svn] r1147 - rt/trunk/bin
huberth at pallas.eruditorum.org
huberth at pallas.eruditorum.org
Sat Jun 26 00:04:29 EDT 2004
Author: huberth
Date: Sat Jun 26 00:04:28 2004
New Revision: 1147
Modified:
rt/trunk/bin/rt.in
Log:
RT-Ticket: 4653
RT-Status: resolved
* The RT CLI no longer tries to perform a substitution on an undefined
response string, taking care of some warnings.
Modified: rt/trunk/bin/rt.in
==============================================================================
--- rt/trunk/bin/rt.in (original)
+++ rt/trunk/bin/rt.in Sat Jun 26 00:04:28 2004
@@ -749,7 +749,7 @@
my ($head, $text) = split /\n\n/, $res->content, 2;
my ($status, @headers) = split /\n/, $head;
- $text =~ s/\n*$/\n/;
+ $text =~ s/\n*$/\n/ if ($text);
# "RT/3.0.1 401 Credentials required"
if ($status !~ m#^RT/\d+(?:\S+) (\d+) ([\w\s]+)$#) {
More information about the Rt-commit
mailing list