Skip to content

Commit

Permalink
dns/ddclient: escape text values without validation, protocol label t…
Browse files Browse the repository at this point in the history
…weak
  • Loading branch information
fichtner committed Aug 22, 2023
1 parent 24fd4c0 commit dd58c38
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}
Expand Down

0 comments on commit dd58c38

Please sign in to comment.