Bläddra i källkod

escape single quote in box, fix #880

pull/891/head
Luke Smith 1 år sedan
förälder
incheckning
60951ccbee
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. +1
    -1
      bin/mw

+ 1
- 1
bin/mw Visa fil

@@ -229,7 +229,7 @@ getboxes() { if [ -n "${force+x}" ] ; then
idnum=$((idnum + 1)) idnum=$((idnum + 1))
[ "$idnum" -eq "$x" ] || break [ "$idnum" -eq "$x" ] || break
done 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" finalize() { echo "$toappend" >> "$accdir/$fulladdr.muttrc"


Laddar…
Avbryt
Spara