summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xclient/scireclient.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/client/scireclient.pl b/client/scireclient.pl
index 15f323e..25e6c9b 100755
--- a/client/scireclient.pl
+++ b/client/scireclient.pl
@@ -101,7 +101,7 @@ sub send_command {
sub parse_response {
my $response = shift;
- $response =~ /^(OK|ERROR)(?: (.+))?$/;
+ $response =~ /^(OK|ERROR)(?: (.+?))?\s*$/;
my ($status, $message) = ($1, $2);
return ($status, $message);
}