X-Git-Url: https://git.madduck.net/code/myrepos.git/blobdiff_plain/2c3fe25a0f2995172bab019ca31ad69c21224191..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;