From 3883df31e5d75474a245942a68db75a78cd14c30 Mon Sep 17 00:00:00 2001 From: Kyle Hall Date: Tue, 3 Jan 2023 08:12:08 -0500 Subject: [PATCH] Bug 32537: (QA follow-up) Don't allow invalid no block values Signed-off-by: Martin Renvoize Signed-off-by: Tomas Cohen Arazi (cherry picked from commit b1867f84852c546958a584b93c4d31af954c6e06) Signed-off-by: Jacob O'Mara (cherry picked from commit 3593ed50fe3d717ee2f82406d071c5aefb23584a) Signed-off-by: Lucas Gass --- misc/sip_cli_emulator.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/misc/sip_cli_emulator.pl b/misc/sip_cli_emulator.pl index 441234dd7e..64948a3664 100755 --- a/misc/sip_cli_emulator.pl +++ b/misc/sip_cli_emulator.pl @@ -54,7 +54,7 @@ my $fee_identifier; my $transaction_id; my $pickup_location; my $hold_mode; -my $no_block; +my $no_block = 'N'; my $terminator = q{}; @@ -103,7 +103,7 @@ if ( $help exit(); } -$no_block //= 'N'; +$no_block = $no_block eq 'Y' ? 'Y' : 'N'; $terminator = ( $terminator eq 'CR' ) ? $CR : $CRLF; -- 2.39.5