Skip to content

Commit 55fe641

Browse files
authored
Merge pull request #1057 from nscuro/backport-pr-1056
Backport: Fix missing URI encoding of tag names
2 parents 74fc944 + 4fc2033 commit 55fe641

4 files changed

+3
-4
lines changed

src/views/portfolio/tags/TagList.vue

-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,6 @@ export default {
8181
template: `
8282
<div>
8383
<b-link v-b-modal="\`taggedProjectListModal-${index}\`">{{ value }}</b-link>
84-
<span v-if="error" class="fa fa-apple"></span>
8584
<tagged-project-list-modal :tag="tagName" :index="index"/>
8685
</div>`,
8786
data() {

src/views/portfolio/tags/TaggedNotificationRuleListModal.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export default {
3535
mixins: [permissionsMixin],
3636
methods: {
3737
apiUrl: function () {
38-
return `${this.$api.BASE_URL}/${this.$api.URL_TAG}/${this.tag}/notificationRule`;
38+
return `${this.$api.BASE_URL}/${this.$api.URL_TAG}/${encodeURIComponent(this.tag)}/notificationRule`;
3939
},
4040
untag: function (notificationRuleUuids) {
4141
return this.axios.delete(this.apiUrl(), {

src/views/portfolio/tags/TaggedPoliciesListModal.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export default {
3535
mixins: [permissionsMixin],
3636
methods: {
3737
apiUrl: function () {
38-
return `${this.$api.BASE_URL}/${this.$api.URL_TAG}/${this.tag}/policy`;
38+
return `${this.$api.BASE_URL}/${this.$api.URL_TAG}/${encodeURIComponent(this.tag)}/policy`;
3939
},
4040
untag: function (policyUuids) {
4141
return this.axios.delete(this.apiUrl(), {

src/views/portfolio/tags/TaggedProjectListModal.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export default {
3737
mixins: [bootstrapTableMixin, permissionsMixin],
3838
methods: {
3939
apiUrl: function () {
40-
return `${this.$api.BASE_URL}/${this.$api.URL_TAG}/${this.tag}/project`;
40+
return `${this.$api.BASE_URL}/${this.$api.URL_TAG}/${encodeURIComponent(this.tag)}/project`;
4141
},
4242
untag: function (projectUuids) {
4343
return this.axios.delete(this.apiUrl(), {

0 commit comments

Comments
 (0)