瀏覽代碼

Fixed "URL rejected: Malformed input to a URL function" issue

pull/942/head
kkoyung 4 月之前
父節點
當前提交
8a4c7ca9ae
沒有發現已知的金鑰在資料庫的簽署中 GPG 金鑰 ID: 4C70EFF619F24192
共有 1 個檔案被更改,包括 3 行新增2 行删除
  1. +3
    -2
      bin/mw

+ 3
- 2
bin/mw 查看文件

@@ -214,7 +214,9 @@ getboxes() {
if [ -n "${force+x}" ]; then
mailboxes="$(printf "INBOX\\nDrafts\\nJunk\\nTrash\\nSent\\nArchive")"
else
info="$(curl "$curlarg" --location-trusted -s -m 5 --user "$login:$(pass "$passprefix$fulladdr")" --url "${protocol:-imaps}://$imap:${iport:-993}")"
[ -n "$sslcert" ] \
&& info="$(curl --location-trusted -s -m 5 --user "$login:$(pass "$passprefix$fulladdr")" --url "${protocol:-imaps}://$imap:${iport:-993}")" \
|| info="$(curl -k --location-trusted -s -m 5 --user "$login:$(pass "$passprefix$fulladdr")" --url "${protocol:-imaps}://$imap:${iport:-993}")"
[ -z "$info" ] && errorexit
mailboxes="$(echo "$info" | grep -v HasChildren | sed "s/.*\" //;s/\"//g" | tr -d '\r')"
fi
@@ -397,7 +399,6 @@ while getopts "rfpXlhodTYD:y:i:I:s:S:u:a:n:P:x:m:t:c:" o; do case "${o}" in
c)
setact add
sslcert="$OPTARG"
curlarg="$curlarg -k"
;;
X)
setact delete


Loading…
取消
儲存