We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 26728e3 commit f0760ddCopy full SHA for f0760dd
Bugzilla/WebService/Server/JSONRPC.pm
@@ -91,8 +91,9 @@ sub response {
91
# Implement JSONP.
92
if (my $callback = $self->_bz_callback) {
93
my $content = $response->content;
94
- $response->content("$callback($content)");
95
-
+ # Prepend the JSONP response with /**/ in order to protect
+ # against possible encoding attacks (e.g., affecting Flash).
96
+ $response->content("/**/$callback($content)");
97
}
98
99
# Use $cgi->header properly instead of just printing text directly.
0 commit comments