Permalink
Browse files

Merge pull request #3374 from marcbowes/master

Regexp fixup
  • Loading branch information...
2 parents 4e9729d + 951a325 commit 00eb67e01f97f1f820e49ee2795f9ea113924974 @josevalim josevalim committed Oct 20, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/lib/action_dispatch/middleware/request_id.rb
@@ -28,7 +28,7 @@ def call(env)
private
def external_request_id(env)
if request_id = env["HTTP_X_REQUEST_ID"].presence
- request_id.gsub(/[^\w\d\-]/, "").first(255)
+ request_id.gsub(/[^\w\-]/, "").first(255)
end
end

0 comments on commit 00eb67e

Please sign in to comment.