Comment 4 for bug 1909309

Revision history for this message
X-Ander (x-ander) wrote :

Hi! I have found out that some smartphones generate wifi QR-codes having different order of attributes. Something like:

   WIFI:T:WPA;P:<key>;S:<ssid>;

So the program crashes. I have replaced the regular expression in qrtools.py by:

   WIFI:(?:;|S:([^;]*);|T:([^;]*);|P:([^;]*);|H:([^;]*);)+

Now it works. Attributes may be in random order, and may be missing as well.