From b64b45c6a5b66b8d6b07ab5a03fccaeabb3677a9 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 --- data/templates/pppoe/peer.tmpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'data/templates/pppoe/peer.tmpl') 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