From 04d3b0bfe0bdd26e313d5a283b995e608be82a6c Mon Sep 17 00:00:00 2001 From: yois615 <38441801+yois615@users.noreply.github.com> Date: Mon, 22 Aug 2022 13:11:23 -0400 Subject: [PATCH] [ht814] Grandstream escape html and sip_port (#6457) --- .../provision/grandstream/ht814/{$mac}.xml | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/resources/templates/provision/grandstream/ht814/{$mac}.xml b/resources/templates/provision/grandstream/ht814/{$mac}.xml index 8fefd91a5c..60951dc64b 100644 --- a/resources/templates/provision/grandstream/ht814/{$mac}.xml +++ b/resources/templates/provision/grandstream/ht814/{$mac}.xml @@ -16,7 +16,7 @@ - {$admin_password} + {$admin_password|escape: 'html'} @@ -109,7 +109,7 @@ - {$http_auth_password} + {$http_auth_password|escape: 'html'} @@ -503,8 +503,11 @@ + {if $account.1.sip_transport != 'dns srv'} + {$account.1.server_address}:{$account.1.sip_port} + {else} {$account.1.server_address} - + {/if} @@ -961,7 +964,7 @@ {if isset($grandstream_dial_plan) } - {$grandstream_dial_plan} + {$grandstream_dial_plan|escape: 'html'} {else} {literal}{ x+ | *x+ | *xx*x+ }{/literal} {/if} @@ -1744,7 +1747,7 @@ 0 - + 0 @@ -2123,4 +2126,4 @@ - \ No newline at end of file +