Skip to content

Commit

Permalink
Merge pull request #13 from NethServer/encodePassword
Browse files Browse the repository at this point in the history
Encode the URL to protect against breacking characters
  • Loading branch information
stephdl authored Nov 16, 2023
2 parents 935d0fd + 27889cb commit f89c047
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion ui/src/views/Status.vue
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,14 @@ export default {
},
methods: {
goToCollaboraAdmin() {
window.open('https://admin:'+this.admin_password + '@' + this.host + '/browser/dist/admin/adminSettings.html');
const username = "admin";
const password = encodeURIComponent(this.admin_password);
const host = this.host;
const path = "/browser/dist/admin/adminSettings.html";
const url = `https://${username}:${password}@${host}${path}`;
window.open(url);
},
async getConfiguration() {
this.loading.getConfiguration = true;
Expand Down

0 comments on commit f89c047

Please sign in to comment.