Skip to content

Conversation

joakim-i
Copy link

This fix aims to solve incompatibility of $ inside Wifi-Passwords. I have narrowed down the errors we have experienced with one particular WiFi network to stem from this line in the code.

I considered just overriding Start-OSDCloudGUI.json to intentionally prevent OSDCloud from applying this configuration, but I suspect that this would end up not working for other reasons.

joakim-i added 3 commits July 31, 2025 16:15
This fix aims to solve incompatibility of $ inside Wifi-Passwords. I have narrowed down the errors we have experienced with one particular WiFi network to stem from this line in the code.

I was considering solving this by overriding the SetWiFi global variable for our usecase, but this would not be feasible as the SetWifi variable is defined and updated inside the main OSD script based upon whether or not WiFi is connected, and is likely to cause issues elsewhere.
Wrap SSID in single quotes to handle special chars and spaces in PowerShell
@michael-hollingsworth
Copy link

To properly resolve any future issues related to improperly escaped SSIDs or passwords, you should use the [System.Security.SecurityElement]::Escape() method to escape invalid XML characters. This has the added benefit of ensuring that SSIDs or passwords that contain a single quote won't interfere with the quoting in the function.

@OSDeploy OSDeploy self-assigned this Sep 11, 2025
@OSDeploy
Copy link
Owner

This has already been updated in master

@OSDeploy OSDeploy closed this Sep 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants