From 401f9fad565a2515219fd5b8f25a6b9594082efd Mon Sep 17 00:00:00 2001 From: Dagen Brock Date: Mon, 29 Apr 2019 06:36:21 -0500 Subject: [PATCH] don't drop unhandled characters --- radius.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/radius.rb b/radius.rb index 724bfd8..29d63f3 100644 --- a/radius.rb +++ b/radius.rb @@ -227,6 +227,12 @@ source_contents.each_line do |line| elsif in_operand buf << c x+=1 + # if they have unhandled weirdness, just pass them through minus whitespace + else + if !c.strip.empty? + buf << c + x+=1 + end end end end