summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorTakuya Noguchi <takninnovationresearch@gmail.com>2017-11-11 00:02:42 +0900
committerTakuya Noguchi <takninnovationresearch@gmail.com>2018-01-25 08:12:19 +0900
commitbb9b7bf6e33ae68d1f898c4cd5e09b44bee2be80 (patch)
tree17d856aa785b3d8b8a0252623b9b793f0f5084bb /app
parent44728e0527bc7c5cf982be2fbbd26e24a79e5d8f (diff)
downloadgitlab-ce-bb9b7bf6e33ae68d1f898c4cd5e09b44bee2be80.tar.gz
Handle special characters on API request of issuable templates
Diffstat (limited to 'app')
-rw-r--r--app/assets/javascripts/api.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/assets/javascripts/api.js b/app/assets/javascripts/api.js
index 38c67b5f04e..7cb81bf4d5b 100644
--- a/app/assets/javascripts/api.js
+++ b/app/assets/javascripts/api.js
@@ -178,7 +178,7 @@ const Api = {
issueTemplate(namespacePath, projectPath, key, type, callback) {
const url = Api.buildUrl(Api.issuableTemplatePath)
- .replace(':key', key)
+ .replace(':key', encodeURIComponent(key))
.replace(':type', type)
.replace(':project_path', projectPath)
.replace(':namespace_path', namespacePath);