浏览代码

escape single quote in box, fix #880

pull/891/head
Luke Smith 1年前
父节点
当前提交
60951ccbee
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      bin/mw

+ 1
- 1
bin/mw 查看文件

@@ -229,7 +229,7 @@ getboxes() { if [ -n "${force+x}" ] ; then
idnum=$((idnum + 1))
[ "$idnum" -eq "$x" ] || break
done
toappend="mailboxes $(echo "$mailboxes" | sed "s/^/\"=/;s/$/\"/" | paste -sd ' ' - )"
toappend="mailboxes $(echo "$mailboxes" | sed "s/^/\"=/;s/$/\"/;s/'/\\\'/g" | paste -sd ' ' - )"
}

finalize() { echo "$toappend" >> "$accdir/$fulladdr.muttrc"


正在加载...
取消
保存