Commit f363cc50 authored by sim's avatar sim

[FIX] String escaping for .ini files

parent 689100bb
......@@ -6,7 +6,7 @@ query () {
}
escape_ini () {
echo -n "$1" | sed -e 's/["\]/\\\\\\&/g' | sed -e 's/[/&]/\\&/g'
echo -n "$1" | sed -e 's/[/&\]/\\&/g'
}
# See http://hackage.haskell.org/package/configurator-0.3.0.0/docs/Data-Configurator.html
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment