Fixed NX legacy password generator. The $ must not be scaped to "\$" :)

This commit is contained in:
Adolfo Gómez García 2017-10-04 11:26:16 +02:00
parent 13f97248f6
commit f54d87a295

View File

@ -114,4 +114,4 @@ class NXPassword(object):
pw += chr(ord(NXPassword._getRandomValidCharFromList()) + 2)
return pw.replace('&', '&amp;').replace('<', '&lt;').replace('"', '&quot;').replace('\'', '&apos;').replace('$', '\\$')
return pw.replace('&', '&amp;').replace('<', '&lt;').replace('"', '&quot;').replace('\'', '&apos;') # .replace('$', '\\$')