Merge pull request #52439 from nextcloud/backport/45765/master

[master] fix(settings): Use axios directly for health check to preven URL sanitizing
This commit is contained in:
Git'Fellow 2025-04-25 17:45:53 +02:00 committed by GitHub
commit 5f40fad790
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'
@ -191,7 +192,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