diff options
author | Marius Balteanu <marius.balteanu@zitec.com> | 2024-02-27 20:12:17 +0000 |
---|---|---|
committer | Marius Balteanu <marius.balteanu@zitec.com> | 2024-02-27 20:12:17 +0000 |
commit | 18cb72230703f922532358d2674c0adc9b2fed79 (patch) | |
tree | 6dbc2c6ba3c00e9e5f2854c9268d354414027466 | |
parent | 26f3a4192a72c8656581f161ead123fd5d050921 (diff) | |
download | redmine-18cb72230703f922532358d2674c0adc9b2fed79.tar.gz redmine-18cb72230703f922532358d2674c0adc9b2fed79.zip |
Backport r22740 from trunk to 5.1-stable (#40237).
git-svn-id: https://svn.redmine.org/redmine/branches/5.1-stable@22753 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r-- | public/javascripts/application.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/public/javascripts/application.js b/public/javascripts/application.js index d39475d46..fcd9aed54 100644 --- a/public/javascripts/application.js +++ b/public/javascripts/application.js @@ -1164,7 +1164,7 @@ function inlineAutoComplete(element) { if (event.target.type === 'text' && $(element).attr('autocomplete') != 'off') { $(element).attr('autocomplete', 'off'); } - remoteSearch(getDataSource('issues') + text, function (issues) { + remoteSearch(getDataSource('issues') + encodeURIComponent(text), function (issues) { return cb(issues); }); }, @@ -1186,7 +1186,7 @@ function inlineAutoComplete(element) { { trigger: '[[', values: function (text, cb) { - remoteSearch(getDataSource('wiki_pages') + text, function (wikiPages) { + remoteSearch(getDataSource('wiki_pages') + encodeURIComponent(text), function (wikiPages) { return cb(wikiPages); }); }, @@ -1208,7 +1208,7 @@ function inlineAutoComplete(element) { values: function (text, cb) { const url = getDataSource('users'); if (url) { - remoteSearch(url + text, function (users) { + remoteSearch(url + encodeURIComponent(text), function (users) { return cb(users); }); } |