Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Simplify regexp

  • Loading branch information...
commit bea34a77296204d0fe328f4bcaed5a82335cbaf5 1 parent 5fcbb94
@pixeltrix pixeltrix authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  actionpack/lib/action_dispatch/middleware/static.rb
View
2  actionpack/lib/action_dispatch/middleware/static.rb
@@ -38,7 +38,7 @@ def unescape_path(path)
end
def escape_glob_chars(path)
- path.gsub(/(\*|\?|\[|\]|\{|\})/, "\\\\\\1")
+ path.gsub(/[*?{}\[\]]/, "\\\\\\&")
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.