Disable debug routes unless PPROF is enabled in configuration (#4995)
This commit is contained in:
		| @@ -131,6 +131,7 @@ func NewMacaron() *macaron.Macaron { | ||||
| 				Func: models.Ping, | ||||
| 			}, | ||||
| 		}, | ||||
| 		DisableDebug: !setting.EnablePprof, | ||||
| 	})) | ||||
| 	m.Use(context.Contexter()) | ||||
| 	return m | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 techknowlogick
						techknowlogick