aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test
diff options
context:
space:
mode:
authorKasper Timm Hansen <kaspth@gmail.com>2017-05-07 20:16:42 +0200
committerGitHub <noreply@github.com>2017-05-07 20:16:42 +0200
commit45095a817b29f3b4956abce5d059410d591b902a (patch)
tree5bf7fc2271ddc5d4ed511db35893c2049142831b /actionpack/test
parentaf58740b8d943f90a18c3e7ceca9432775cfe192 (diff)
parentb201474756a2ee493406ad0cb49f49c6873bdc28 (diff)
downloadrails-45095a817b29f3b4956abce5d059410d591b902a.tar.gz
rails-45095a817b29f3b4956abce5d059410d591b902a.tar.bz2
rails-45095a817b29f3b4956abce5d059410d591b902a.zip
Merge pull request #29005 from kamipo/should_escape_meta_chars_in_regexp
Should escape meta characters in regexp
Diffstat (limited to 'actionpack/test')
-rw-r--r--actionpack/test/dispatch/request_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/test/dispatch/request_test.rb b/actionpack/test/dispatch/request_test.rb
index 2f9228a62d..28cbde028d 100644
--- a/actionpack/test/dispatch/request_test.rb
+++ b/actionpack/test/dispatch/request_test.rb
@@ -110,8 +110,8 @@ class RequestIP < BaseRequestTest
request.remote_ip
}
assert_match(/IP spoofing attack/, e.message)
- assert_match(/HTTP_X_FORWARDED_FOR="1.1.1.1"/, e.message)
- assert_match(/HTTP_CLIENT_IP="2.2.2.2"/, e.message)
+ assert_match(/HTTP_X_FORWARDED_FOR="1\.1\.1\.1"/, e.message)
+ assert_match(/HTTP_CLIENT_IP="2\.2\.2\.2"/, e.message)
end
test "remote ip with spoof detection disabled" do