AquaticPrime icon indicating copy to clipboard operation
AquaticPrime copied to clipboard

Python: missing XML encoding

Open mhahn-sighthoundlabs opened this issue 10 years ago • 0 comments

It seems that none of the values going into the XML are getting encoding. Having anything with an ampersand e.g. leads to verification failure. Example:

licence_data += u"\t" + signature + u"\n"

Python 2.0+ has XML encoding built in, so 'escape(signature)' would be the solution.

mhahn-sighthoundlabs avatar Jul 16 '14 17:07 mhahn-sighthoundlabs