From b4f5176b130e62f4c3db2aa5765edb609f8f21c1 Mon Sep 17 00:00:00 2001 From: DmitriyEshenko Date: Mon, 25 Jan 2021 12:15:01 +0000 Subject: pppoe: T3251: Add double-quotes to protect special characters (cherry picked from commit b64b45c6a5b66b8d6b07ab5a03fccaeabb3677a9) --- data/templates/pppoe/peer.tmpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'data/templates/pppoe') 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 }} -- cgit v1.2.3