diff options
Diffstat (limited to 'client')
-rwxr-xr-x | client/scireclient.pl | 2 |
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); } |