Accept dots in JSONP callback (#13718).

git-svn-id: http://svn.redmine.org/redmine/trunk@15066 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2016-01-16 09:08:06 +00:00
parent 9adf2cb0ea
commit aaeb0807bf
2 changed files with 3 additions and 3 deletions

View File

@@ -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