diff options
author | Michael Fellinger <m.fellinger@gmail.com> | 2010-06-17 11:43:36 +0900 |
---|---|---|
committer | James Tucker <jftucker@gmail.com> | 2011-05-22 23:57:47 -0700 |
commit | b5f7c9c7e21d732bb2b0c98fcd2b61c4a6f6a518 (patch) | |
tree | 9f7f4e6725f5b68a1603e68249dd654a870fd901 | |
parent | e226cc65aa493cf9826034002dae864306d52724 (diff) | |
download | rack-b5f7c9c7e21d732bb2b0c98fcd2b61c4a6f6a518.tar.gz |
Fix ESCAPE_HTML_PATTERN construction
-rw-r--r-- | lib/rack/utils.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rack/utils.rb b/lib/rack/utils.rb index 45c1517b..bc60cd1f 100644 --- a/lib/rack/utils.rb +++ b/lib/rack/utils.rb @@ -135,7 +135,7 @@ module Rack "'" => "'", '"' => """, } - ESCAPE_HTML_PATTERN = Regexp.union(ESCAPE_HTML.keys) + ESCAPE_HTML_PATTERN = Regexp.union(*ESCAPE_HTML.keys) # Escape ampersands, brackets and quotes to their HTML/XML entities. def escape_html(string) |