Commit e88632c9 authored by Leigh B. Stoller's avatar Leigh B. Stoller

Remove trailing newlines from key since that screws up the patterns.

parent df5def87
......@@ -284,6 +284,9 @@ exit 1;
sub ParseKey($) {
my ($keyline) = @_;
# Remove trailing newlines which screws the patterns below.
$keyline =~ s/\n//g;
# Enforce a reasonable length on the key.
if (length($keyline) > 4096) {
print "Key is too long!\n";
......
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