mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-10-20 05:23:15 -04:00
guard on ParseForm
This commit is contained in:
1 file changed
+4
-1
@@ -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