X-Git-Url: https://git.madduck.net/code/myrepos.git/blobdiff_plain/f9f7242bc46863624b9096d0bcda50bbc098aa49..2f0d3d7a85a19b86e809d6589df138efa36cf973:/mr diff --git a/mr b/mr index 3996b60..6e27cd5 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;