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

Comments

Projects
None yet
3 participants
@marksolaris

marksolaris commented Sep 26, 2013

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

This comment has been minimized.

Show comment
Hide comment
@jensensen

jensensen Jun 2, 2015

Thank you! This works perfect for me.

jensensen commented Jun 2, 2015

Thank you! This works perfect for me.

@gehrhorn

This comment has been minimized.

Show comment
Hide comment
@gehrhorn

gehrhorn Jun 3, 2015

Contributor

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

Contributor

gehrhorn commented Jun 3, 2015

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

@marksolaris

This comment has been minimized.

Show comment
Hide comment
@marksolaris

marksolaris Jun 3, 2015

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).

marksolaris commented Jun 3, 2015

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

This comment has been minimized.

Show comment
Hide comment
@gehrhorn

gehrhorn Jun 3, 2015

Contributor

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

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

Merge pull request #388 from varp/master
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