Merge pull request #48615 from nextcloud/backport/45765/stable30

[stable30] fix(settings): Use axios directly for health check to preven URL sanitizing
This commit is contained in:
Andy Scherzinger 2024-10-08 17:08:21 +02:00 committed by GitHub
commit 3b51990d5b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 5 additions and 4 deletions

View file

@ -5,6 +5,7 @@
import api from './api.js'
import Vue from 'vue'
import axios from '@nextcloud/axios'
import { generateUrl } from '@nextcloud/router'
import { showError, showInfo } from '@nextcloud/dialogs'
import { loadState } from '@nextcloud/initial-state'
@ -178,7 +179,7 @@ const actions = {
})
// check for server health
return api.get(generateUrl('apps/files/'))
return axios.get(generateUrl('apps/files/'))
.then(() => {
if (response.data.update_required) {
showInfo(

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long