schwabe / ics-openvpn

OpenVPN for Android
3.36k stars 1.2k forks source link

Options error if password has single quote: No closing single quotation (') in TCP:0 #1456

Closed onthepenciltip closed 2 years ago

onthepenciltip commented 2 years ago

General information

Android Version: 9 Android UI: Huawei EMUI 9.1.0

Description of the issue

There is no connection if a password starts (or contains) with single quote. It seems the password value is not escaped in Options.

Log

4:56 PM OpenVPN 2.6-icsopenvpn [git:icsopenvpn/v0.7.33-0-g8bc2287a] arm64-v8a [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [MH/PKTINFO] [AEAD] built on Jan 13 2022
4:56 PM library versions: OpenSSL 3.0.1 14 Dec 2021, LZO 2.10
4:56 PM MGMT: Got unrecognized line from management:ERROR: Options error: No closing single quotation (') in TCP:0