Skip to content

Commit

Permalink
Rails Unknown if we run out of chars in an xml
Browse files Browse the repository at this point in the history
  • Loading branch information
sdsykes committed Mar 28, 2024
1 parent 7de7faf commit 36ac127
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/fastimage.rb
Expand Up @@ -579,7 +579,7 @@ def parse_type
# the file, and is within the first 1000 chars.
begin
:svg if (1..100).detect {|n| @stream.peek(10 * n).include?("<svg")}
rescue FiberError
rescue FiberError, CannotParseImage
nil
end
end
Expand Down

0 comments on commit 36ac127

Please sign in to comment.