Modules.QRCodeGenerator icon indicating copy to clipboard operation
Modules.QRCodeGenerator copied to clipboard

Incorrect QR-codes with certain string

Open WagoL opened this issue 3 years ago • 2 comments

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

WagoL avatar Sep 30 '22 08:09 WagoL

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.

TobiasPSP avatar Sep 30 '22 08:09 TobiasPSP

Spot on. Indeed adding a backslash does the trick.

WagoL avatar Sep 30 '22 08:09 WagoL