mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-01-06 04:09:40 -06:00
guard on ParseForm
This commit is contained in:
@@ -145,7 +145,10 @@ func (g Graph) CreateDrive(w http.ResponseWriter, r *http.Request) {
|
||||
return
|
||||
}
|
||||
|
||||
r.ParseForm()
|
||||
if err := r.ParseForm(); err != nil {
|
||||
errorcode.GeneralException.Render(w, r, http.StatusUnauthorized, err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
s := sproto.NewPermissionService("com.owncloud.api.settings", grpc.DefaultClient)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user