NagiosEnterprises / ncpa

Nagios Cross-Platform Agent
Other
176 stars 95 forks source link

Altering ConfigParser instantiation to disable interpolation #1054

Closed ne-bbahn closed 7 months ago

ne-bbahn commented 7 months ago

ConfigParser's interpolation means that % must be escaped (%%) for it to register as the % character in the configuration. This has led several people to have issues with their passwords as they simply made them mypasswordwith% unknowingly breaking their configuration. As interpolation isn't particularly useful for this project, I will disable it by default.

Anyone who wants it will have to find the two instances of instantiating ConfigParser and build NCPA where it instantiates it with ConfigParser() instead of the now ConfigParser(interpolation=None)

In NCPA 2, the % character did not need to be escaped.