shadowsocks-libev: fix cases where passwords contain dquote
authorYousong Zhou <yszhou4tech@gmail.com>
Mon, 24 Jul 2017 05:08:58 +0000 (13:08 +0800)
committerYousong Zhou <yszhou4tech@gmail.com>
Mon, 24 Jul 2017 05:10:18 +0000 (13:10 +0800)
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
net/shadowsocks-libev/Makefile
net/shadowsocks-libev/files/shadowsocks-libev.init

index b36d9a3a8889a836ad239091e6d7343da047c2f9..cd1bbe0584d46f75867b844800ede5bbe70e3ee8 100644 (file)
@@ -19,7 +19,7 @@ include $(TOPDIR)/rules.mk
 #
 PKG_NAME:=shadowsocks-libev
 PKG_VERSION:=3.0.6
-PKG_RELEASE:=3
+PKG_RELEASE:=4
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=https://github.com/shadowsocks/shadowsocks-libev/releases/download/v$(PKG_VERSION)
index f59b749555ba2379b69240114005f07e6432e413..f4887d3075ea1ef0aa385c164c0079fe33b55026 100644 (file)
@@ -47,6 +47,7 @@ ss_mkjson_server_conf() {
 
 ss_mkjson_server_conf_() {
        [ -n "$server_port" ] || return 1
+       password="${password//\"/\\\"}"
        cat <<-EOF
                ${server:+${q}server${q}: ${q}$server${q},}
                "server_port": $server_port,