Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Simplify regexp

  • Loading branch information...
commit 1b4e6ca9d86ef39f17feef50e525f96706a8fc09 1 parent 86d3bc3
@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.