diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2016-01-16 09:08:06 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2016-01-16 09:08:06 +0000 |
commit | aaeb0807bfd7f22433a2dd84ec7145b501465bb6 (patch) | |
tree | 17e3ce229e1b14159c44819ff1e49b1b103fee1a /lib/redmine/views | |
parent | 9adf2cb0ea9bec187b70e91816f13a92ab9fbd84 (diff) | |
download | redmine-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.rb | 2 |
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 |