JonathanHolvey / sharepy

Simple SharePoint authentication for Python
GNU General Public License v3.0
175 stars 52 forks source link

fails on special characters in username/password #2

Closed robesv closed 7 years ago

robesv commented 7 years ago

Solution works fine apart from when there are characters, special to XML, in the username or password.

I would advise to fix by escaping the username and password before adding them to the XML template. The method to use for this would be 'escape' from xml.sax.saxutils.

JonathanHolvey commented 7 years ago

Thanks for the report. You make a good point. This may also have been the cause of the authentication error seen in #1.