summaryrefslogtreecommitdiffstats
path: root/lib/redmine/views
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2016-01-16 09:08:06 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2016-01-16 09:08:06 +0000
commitaaeb0807bfd7f22433a2dd84ec7145b501465bb6 (patch)
tree17e3ce229e1b14159c44819ff1e49b1b103fee1a /lib/redmine/views
parent9adf2cb0ea9bec187b70e91816f13a92ab9fbd84 (diff)
downloadredmine-aaeb0807bfd7f22433a2dd84ec7145b501465bb6.tar.gz
redmine-aaeb0807bfd7f22433a2dd84ec7145b501465bb6.zip
Accept dots in JSONP callback (#13718).
git-svn-id: http://svn.redmine.org/redmine/trunk@15066 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/redmine/views')
-rw-r--r--lib/redmine/views/builders/json.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/redmine/views/builders/json.rb b/lib/redmine/views/builders/json.rb
index 50833fdc8..5a38ee004 100644
--- a/lib/redmine/views/builders/json.rb
+++ b/lib/redmine/views/builders/json.rb
@@ -27,7 +27,7 @@ module Redmine
super
callback = request.params[:callback] || request.params[:jsonp]
if callback && Setting.jsonp_enabled?
- self.jsonp = callback.to_s.gsub(/[^a-zA-Z0-9_]/, '')
+ self.jsonp = callback.to_s.gsub(/[^a-zA-Z0-9_.]/, '')
end
end