TobiasPSP / Modules.QRCodeGenerator

MIT License
37 stars 9 forks source link

Incorrect QR-codes with certain string #19

Open WagoL opened 1 year ago

WagoL commented 1 year ago

I'm facing the following issue when using a \ in the password, after rendering the QR code and scanning the \ is gone in the password. Code used.

$password = 'eKg842~\=cjf677'
New-QRCodeWifiAccess -SSID 'MyWiFi' -Password $password -Width 10 -Show
TobiasPSP commented 1 year ago

Can you try and see what happens when you submit a double backslash instead of one? I can only assume that it was treated as escape character, so duplicating might escape it.

WagoL commented 1 year ago

Spot on. Indeed adding a backslash does the trick.