Merge pull request #3374 from marcbowes/master

Regexp fixup
This commit is contained in:
José Valim
2011-10-20 00:11:06 -07:00

View File

@@ -28,7 +28,7 @@ module ActionDispatch
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