No string escaping for SNMP config files

Daniel Goertzen <[email protected]> Mon, 13 Jun 2016 20:45:57 +0000
Newsgroups gmane.comp.lang.erlang.bugs
Message-ID <CAJCf5RwmyEVsL7i3UMc+qm0=Es0umWRUDaWNF8XGrTuiGvUD3Q@mail.gmail.com>
--===============2786820959178140935==
Content-Type: multipart/alternative; boundary=001a113d364042677705352efa22

--001a113d364042677705352efa22
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

Config files written by the SNMP application lack string escaping as shown
in the example below.  This goes especially badly when there's a quote
character in the string (config file becomes unreadable).  I plan on doing
a PR for this, but I thought I'd mention it here first.

-sh-4.3# cat agent.conf
%% This file was generated by snmpa_conf (version-5.2) 2016-05-26 ...

{intAgentIpAddress, [0,0,0,0]}.
{intAgentUDPPort, 161}.
{snmpEngineMaxMessageSize, 484}.
{snmpEngineID, "=EF=BF=BDc=EF=BF=BD0"$=D4=9E"}.

--001a113d364042677705352efa22
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>Config files written by the SNMP application lack str=
ing escaping as shown in the example below.=C2=A0 This goes especially badl=
y when there&#39;s a quote character in the string (config file becomes unr=
eadable).=C2=A0 I plan on doing a PR for this, but I thought I&#39;d mentio=
n it here first.</div><div><br></div><div>-sh-4.3# cat agent.conf=C2=A0</di=
v><div>%% This file was generated by snmpa_conf (version-5.2) 2016-05-26 ..=
.</div><div><br></div><div>{intAgentIpAddress, [0,0,0,0]}.</div><div>{intAg=
entUDPPort, 161}.</div><div>{snmpEngineMaxMessageSize, 484}.</div><div>{snm=
pEngineID, &quot;=EF=BF=BDc=EF=BF=BD0&quot;$=D4=9E&quot;}.</div><div><br></=
div></div>

--001a113d364042677705352efa22--

--===============2786820959178140935==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
erlang-bugs mailing list
[email protected]
http://erlang.org/mailman/listinfo/erlang-bugs

--===============2786820959178140935==--