formfiller: escape ' " ` \ properly

Open
#14 · Created  · Last updated

Description

formfiller didn't escape those chars properly. This patch fixes that. The updated version uses heredocs to also support `

Steps to reproduce: 1. go to any login form

2a. enter login: foo & passwd: foo"bar 3a. save form: efg nothing happens (check with gpg2 -d .config/dwb/forms)

2b. enter login: foo & passwd: foob\ar 3b. save form: efg forms now contains: "value":"foob\ar" 4b. load form: eff returns: "Error in line 305: JSON Parse error: Invalid escape character a"

0 attachments

0 comments

Loading commits...