guard on ParseForm

This commit is contained in:
A.Unger
2021-09-08 11:50:01 +02:00
parent 321697828e
commit 86b9ada9b5

View File

@@ -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)