diff options
author | DmitriyEshenko <dmitriy.eshenko@vyos.io> | 2021-01-25 12:15:01 +0000 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2021-01-25 16:14:08 +0100 |
commit | b4f5176b130e62f4c3db2aa5765edb609f8f21c1 (patch) | |
tree | 36caff9546eeae88ef4207f1a84ab7e8ba378321 /data | |
parent | f5dba7d226fc35c05d4868f7d87a9c0adfee6448 (diff) | |
download | vyos-1x-b4f5176b130e62f4c3db2aa5765edb609f8f21c1.tar.gz vyos-1x-b4f5176b130e62f4c3db2aa5765edb609f8f21c1.zip |
pppoe: T3251: Add double-quotes to protect special characters
(cherry picked from commit b64b45c6a5b66b8d6b07ab5a03fccaeabb3677a9)
Diffstat (limited to 'data')
-rw-r--r-- | data/templates/pppoe/peer.tmpl | 4 |
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 }} |