dns/ddclient: escape text values without validation, protocol label tweak

This commit is contained in:
Franco Fichtner
2023-08-22 08:58:38 +02:00
parent 24fd4c0e0c
commit dd58c387d8
2 changed files with 9 additions and 9 deletions
@@ -93,9 +93,9 @@
<Required>N</Required>
<ValidationMessage>A protocol type is required.</ValidationMessage>
<OptionValues>
<dyndns1>DynDns1</dyndns1>
<dyndns2>DynDns2</dyndns2>
<post>custom POST</post>
<dyndns1>DynDNS 1</dyndns1>
<dyndns2>DynDNS 2</dyndns2>
<post>Custom POST</post>
</OptionValues>
</protocol>
<server type="TextField">
@@ -13,19 +13,19 @@
"id": "{{ account['@uuid'] }}",
"service": "{{ account.service }}",
"protocol": "{{ account.protocol }}",
"server": "{{ account.server }}",
"resourceId": "{{ account.resourceId }}",
"username": "{{ account.username }}",
"password": "{{ account.password }}",
"server": {{ account.server | default('') | tojson }},
"resourceId": {{ account.resourceId | default('') | tojson }},
"username": {{ account.username | default('') | tojson }},
"password": {{ account.password | default('') | tojson }},
"hostnames": "{{ account.hostnames }}",
"wildcard": {{ "true" if account.wildcard == '1' else "false"}},
"zone": "{{ account.zone }}",
"checkip": "{{ account.checkip }}",
"interface": "{% if account.interface %}{{physical_interface(account.interface)}}{% endif %}",
"checkip_timeout": {{ account.checkip_timeout }},
"force_ssl": {{ "true" if account.force_ssl == '1' else "false"}},
"ttl": "{{ account.ttl }}",
"interface": "{%if account.interface %}{{physical_interface(account.interface)}}{% endif%}",
"description": "{{ account.description }}"
"description": {{ account.description | default('') | tojson }}
}{{ "," if not loop.last else ""}}
{% endfor %}
{% endif %}