X-Git-Url: https://git.madduck.net/code/myrepos.git/blobdiff_plain/f9f7242bc46863624b9096d0bcda50bbc098aa49..95f38e8b44cbfca1f23a640d8153c95e6650e32d:/mr?ds=inline diff --git a/mr b/mr index 3996b60..9a81f61 100755 --- a/mr +++ b/mr @@ -1184,6 +1184,11 @@ sub loadconfig { $_=shift @lines; $line++; chomp; + + if (! $trusted && /[[:cntrl:]]/) { + trusterror("mr: illegal control character", $f, $line, $bootstrap_url); + } + next if /^\s*\#/ || /^\s*$/; if (/^\[([^\]]*)\]\s*$/) { $section=$1; @@ -1287,7 +1292,7 @@ sub loadconfig { } } else { - die "$f line $line: parse error\n"; + die "$f line $line: '$_': parse error\n"; } }