YunoHost-Apps / hotspot_ynh

Wifi Hotspot app for YunoHost
GNU Affero General Public License v3.0
39 stars 19 forks source link

SSID with space character generates an error #97

Closed ghost closed 2 months ago

ghost commented 2 years ago

Describe the bug

SSID with " " space character, like "Clic Wifi" generates an error.

Context

Steps to reproduce

Put a ssid like Clic Wifi generates the error. It works without space.

Expected behavior

Be able to use spaces in ssid.

Logs

Configuration key 'wifi_ssid' edited in app settings
awk: cmd. line:1: BEGIN{FS=OFS="|"} {$1="Clic
awk: cmd. line:1: ^ unterminated string
awk: cmd. line:1: BEGIN{FS=OFS="|"} {$1="Clic
awk: cmd. line:1: ^ syntax error
Exception ignored in: <_io.TextIOWrapper name='' mode='w' encoding='utf-8'>
BrokenPipeError: [Errno 32] Broken pipe
Configuration key 'wifi_ssid' edited in app settings