mirror of
https://github.com/redmine/redmine.git
synced 2026-07-21 00:41:31 +02:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user