[Rt-commit] [svn] r1146 - rt/trunk/bin
huberth at pallas.eruditorum.org
huberth at pallas.eruditorum.org
Fri Jun 25 23:15:36 EDT 2004
Author: huberth
Date: Fri Jun 25 23:15:35 2004
New Revision: 1146
Modified:
rt/trunk/bin/rt.in
Log:
* RT CLI no longer chokes when the return status from the HTTP server contains
a non-numeric version number like "3.1.HEAD"
Modified: rt/trunk/bin/rt.in
==============================================================================
--- rt/trunk/bin/rt.in (original)
+++ rt/trunk/bin/rt.in Fri Jun 25 23:15:35 2004
@@ -752,7 +752,7 @@
$text =~ s/\n*$/\n/;
# "RT/3.0.1 401 Credentials required"
- if ($status !~ m#^RT/\d+(?:\.\d+)+(?:-?\w+)? (\d+) ([\w\s]+)$#) {
+ if ($status !~ m#^RT/\d+(?:\S+) (\d+) ([\w\s]+)$#) {
warn "rt: Malformed RT response from $config{server}.\n";
warn "(Rerun with RTDEBUG=3 for details.)\n" if $config{debug} < 3;
exit -1;
More information about the Rt-commit
mailing list