From 1aa13cbf5a7a5956c98616138b1c5d1394c5bb92 Mon Sep 17 00:00:00 2001 From: Jeremy Davis Date: Mon, 17 Nov 2014 11:12:36 -0500 Subject: [PATCH] Ticket #31790 phone_shellcommands shell quote phone_name --- FS/FS/part_export/phone_shellcommands.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/FS/FS/part_export/phone_shellcommands.pm b/FS/FS/part_export/phone_shellcommands.pm index 593b14e47..71445bf27 100644 --- a/FS/FS/part_export/phone_shellcommands.pm +++ b/FS/FS/part_export/phone_shellcommands.pm @@ -53,6 +53,7 @@ old_ for replace operations):
  • $cust_name - Customer name (quoted for the shell)
  • $pkgnum - Internal package number
  • $custnum - Internal customer number +
  • $phone_name - Phone name (quoted for the shell)
  • $mac_addr - MAC address (Device MAC address insert and delete commands only)
  • $devicename - Device type (Device type insert and delete commands only) @@ -115,6 +116,7 @@ sub _export_command { my $cust_name = $cust_pkg ? $cust_pkg->cust_main->name : ''; $cust_name = shell_quote $cust_name; my $sip_password = shell_quote $svc_phone->sip_password; + my $phone_name = shell_quote $svc_phone->phone_name; #done setting variables for the command $self->shellcommands_queue( $svc_phone->svcnum, -- 2.11.0