Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2.6.2: lib/snorby/payload.rb: invalid multibyte escapes #318

Open
marksolaris opened this issue Sep 26, 2013 · 4 comments
Open

2.6.2: lib/snorby/payload.rb: invalid multibyte escapes #318

marksolaris opened this issue Sep 26, 2013 · 4 comments

Comments

@marksolaris
Copy link

When running the

rake --verbose --trace --rules snorby:setup

command, these errors came up:

lib/snorby/payload.rb:60: invalid multibyte escape: /[\000-\040\177-\377]/
lib/snorby/payload.rb:57: invalid multibyte escape: /[\040\177-\377]/

I've commented and replaced the lines with those below

55            if @new_lines
56              string.gsub!(/[\x0a]/, ".")
57              string.gsub!(Regexp.new("[\040\177-\377]"), '.')
58              # old:  string.gsub!(/[\040\177-\377]/, '.')
59            else
60              string.gsub!(Regexp.new("[\000-\040\177-\377]"), ".")
61              # old: string.gsub!(/[\000-\040\177-\377]/, ".")
62            end
@jensensen
Copy link

Thank you! This works perfect for me.

@gehrhorn
Copy link
Contributor

gehrhorn commented Jun 3, 2015

@marksolaris can you make this into a pull request? Have you already?

@marksolaris
Copy link
Author

Nope, I don't currently use snorby.

On Thursday, 4 June 2015, George Ehrhorn notifications@github.com wrote:

@marksolaris https://github.com/marksolaris can you make this into a
pull request? Have you already?


Reply to this email directly or view it on GitHub
#318 (comment).

@gehrhorn
Copy link
Contributor

gehrhorn commented Jun 3, 2015

Oh, sorry, just noticed how old this issue is.

varp added a commit to varp/snorby that referenced this issue Aug 18, 2015
gehrhorn added a commit that referenced this issue Jan 23, 2016
Update to Rails 3.2.22; Fix RUBY_VERSION chek; close issue #318
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants