Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Regexp fixup #3374

Merged
merged 1 commit into from

2 participants

@marcbowes

As per Regexp, \w includes [0-9], thus making \d redundant.

@josevalim josevalim merged commit 00eb67e into rails:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  actionpack/lib/action_dispatch/middleware/request_id.rb
View
2  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
Something went wrong with that request. Please try again.