summaryrefslogtreecommitdiff
path: root/data/templates/pppoe
diff options
context:
space:
mode:
authorDmitriyEshenko <dmitriy.eshenko@vyos.io>2021-01-25 12:15:01 +0000
committerDmitriyEshenko <dmitriy.eshenko@vyos.io>2021-01-25 15:12:48 +0000
commitb64b45c6a5b66b8d6b07ab5a03fccaeabb3677a9 (patch)
tree3fd8076cd3f93182619bac8ea635eb472a939de5 /data/templates/pppoe
parent73cc357b757eb6129db286709812996ebcc4fd19 (diff)
downloadvyos-1x-b64b45c6a5b66b8d6b07ab5a03fccaeabb3677a9.tar.gz
vyos-1x-b64b45c6a5b66b8d6b07ab5a03fccaeabb3677a9.zip
pppoe: T3251: Add double-quotes to protect special characters
Diffstat (limited to 'data/templates/pppoe')
-rw-r--r--data/templates/pppoe/peer.tmpl4
1 files changed, 2 insertions, 2 deletions
diff --git a/data/templates/pppoe/peer.tmpl b/data/templates/pppoe/peer.tmpl
index db2cc6188..0f78f9384 100644
--- a/data/templates/pppoe/peer.tmpl
+++ b/data/templates/pppoe/peer.tmpl
@@ -47,8 +47,8 @@ mtu {{ mtu }}
mru {{ mtu }}
{% if authentication is defined %}
-{{ "user " + authentication.user if authentication.user is defined }}
-{{ "password " + authentication.password if authentication.password is defined }}
+{{ 'user "' + authentication.user + '"' if authentication.user is defined }}
+{{ 'password "' + authentication.password + '"' if authentication.password is defined }}
{% endif %}
{{ "usepeerdns" if no_peer_dns is not defined }}