Skip to content

Commit 1b11346

Browse files
committed
Merge pull request #93 from justintv/master
Fix CVE-2014-4671
2 parents 5c12ace + 2dd3b22 commit 1b11346

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/rack/contrib/jsonp.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ def pad(callback, response, body = "")
9999
# https://github.com/rack/rack-contrib/issues/46
100100
response.close if response.respond_to?(:close)
101101

102-
["#{callback}(#{body})"]
102+
["/**/#{callback}(#{body})"]
103103
end
104104

105105
def bad_request(body = "Bad Request")

0 commit comments

Comments
 (0)