[ht814] Grandstream escape html and sip_port (#6457)

This commit is contained in:
yois615 2022-08-22 13:11:23 -04:00 committed by GitHub
parent 3d0fe368ac
commit 04d3b0bfe0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 6 deletions

View File

@ -16,7 +16,7 @@
<!-- # Admin password for web interface -->
<!-- # String; between ascii values 33 and 126 -->
<!-- # Mandatory -->
<P2>{$admin_password}</P2>
<P2>{$admin_password|escape: 'html'}</P2>
<!-- # Layer 2 QoS. -->
@ -109,7 +109,7 @@
<!-- # HTTP/HTTPS Password -->
<!-- # String; between ascii values 33 and 126 -->
<P1361>{$http_auth_password}</P1361>
<P1361>{$http_auth_password|escape: 'html'}</P1361>
<!-- # Firmware File Prefix -->
<!-- # String; between ascii values 33 and 126 -->
@ -503,8 +503,11 @@
<!-- # Primary SIP Server -->
<!-- # Server address -->
{if $account.1.sip_transport != 'dns srv'}
<P47>{$account.1.server_address}:{$account.1.sip_port}</P47>
{else}
<P47>{$account.1.server_address}</P47>
{/if}
<!-- # Failover SIP Server -->
<!-- # Server address -->
@ -961,7 +964,7 @@
<!-- # Dial Plan -->
<!-- # String -->
{if isset($grandstream_dial_plan) }
<P4200>{$grandstream_dial_plan}</P4200>
<P4200>{$grandstream_dial_plan|escape: 'html'}</P4200>
{else}
<P4200>{literal}{ x+ | *x+ | *xx*x+ }{/literal}</P4200>
{/if}
@ -1744,7 +1747,7 @@
<P28161>0</P28161>
<!-- # Management Access. 0- Management Interface Only, 1 - Both Services and Management Interfaces -->
<!-- # Number 0 1 -->
<!-- # Number: 0, 1 -->
<!-- # Mandatory -->
<P28162>0</P28162>