KDAB / Charm

The Cross-Platform Time Tracker
GNU General Public License v2.0
194 stars 70 forks source link

Fix httpclient error-message extraction #301

Closed sebsauer closed 8 years ago

sebsauer commented 8 years ago

Entities like   are invalid XML what leads to QXmlStreamReader::hasError==true what aborts parsing. Add a custom QXmlStreamEntityResolver to just skip over such undeclared entities and replace them with a whitespace. Thats enough because we are only interested in keeping the QXmlStreamReader parsing till we reached that error-message we are supposed to extract.