Closed justinsteven closed 7 years ago
Thanks @justinsteven , those unescaped dots definitely look like an oversight to me.
Agreed, escaped dots FTW w.r.t. regex. :+1:
I'm going to suggest we move the examples in the PR description into spec/rex/file_spec.rb
Thanks @pbarry-r7
This patch ensures the Rex clean_path() logic doesn't unexpectedly remove valid directory names from the path being "cleaned".
Thanks for the fix, @justinsteven!
clean_path()
's regexes have unescaped dots, causing unintended over-cleaning.Before patch:
This is good
This is bad
Post-patch: