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

public/javascripts/application.js

index d39475d46d3fd03ca2ebe2c3dc31276d63a1dfd3..fcd9aed5458fe5b5b5a3c8b1b5ab45ba278e0aa2 100644 (file)
@@ -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);
               });
             }