]> source.dussan.org Git - redmine.git/commitdiff
Merged r22753 from 5.1-stable to 5.0-stable (#40237).
authorMarius Balteanu <marius.balteanu@zitec.com>
Tue, 27 Feb 2024 20:14:58 +0000 (20:14 +0000)
committerMarius Balteanu <marius.balteanu@zitec.com>
Tue, 27 Feb 2024 20:14:58 +0000 (20:14 +0000)
git-svn-id: https://svn.redmine.org/redmine/branches/5.0-stable@22754 e93f8b46-1217-0410-a6f0-8f06a7374b81

public/javascripts/application.js

index dcebb092372cc2cc7a3ec8b0fa0357fafad6ad16..c27be49ab57501b344dd74252b46a48f7c6370d0 100644 (file)
@@ -1161,7 +1161,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);
             });
           },
@@ -1183,7 +1183,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);
             });
           },
@@ -1205,7 +1205,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);
               });
             }