summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarius Balteanu <marius.balteanu@zitec.com>2024-02-27 20:14:58 +0000
committerMarius Balteanu <marius.balteanu@zitec.com>2024-02-27 20:14:58 +0000
commit60715f70fb16dcfff24954322bbd1bef2d7207f0 (patch)
treed518f123728ba56b5c1dd13de67de39cbcfe9bf3
parent7c2bff9f9f7dfb66e3ee939d3f50a95a92c01d6e (diff)
downloadredmine-60715f70fb16dcfff24954322bbd1bef2d7207f0.tar.gz
redmine-60715f70fb16dcfff24954322bbd1bef2d7207f0.zip
Merged r22753 from 5.1-stable to 5.0-stable (#40237).
git-svn-id: https://svn.redmine.org/redmine/branches/5.0-stable@22754 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r--public/javascripts/application.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/public/javascripts/application.js b/public/javascripts/application.js
index dcebb0923..c27be49ab 100644
--- a/public/javascripts/application.js
+++ b/public/javascripts/application.js
@@ -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);
});
}
04' href='#n104'>104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202