mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 08:16:43 -04:00
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:
commit
3b51990d5b
3 changed files with 5 additions and 4 deletions
|
|
@ -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
Loading…
Reference in a new issue