• Simon Rawet's avatar
    Added MaxMemory limit to CopyBody() · 52c4c1fb
    Simon Rawet authored
    Beego only uses the MaxMemory flag when using go's built in functions
    for parsing forms. However the CopyBody() function have no limit an will
    coppy anny amount of data into memory using ioutil.ReedAll() on the
    request body whitout anny size validation or limit.
    
    This fix wrapps input.Requst.Body in a LimitedReader using the same
    memory limit as ParseFormOrMulitForm()
    52c4c1fb
Name
Last commit
Last update
cache Loading commit data...
config Loading commit data...
context Loading commit data...
grace Loading commit data...
httplib Loading commit data...
logs Loading commit data...
migration Loading commit data...
orm Loading commit data...
plugins Loading commit data...
session Loading commit data...
swagger Loading commit data...
testing Loading commit data...
toolbox Loading commit data...
utils Loading commit data...
validation Loading commit data...
.gitignore Loading commit data...
LICENSE Loading commit data...
README.md Loading commit data...
admin.go Loading commit data...
adminui.go Loading commit data...
app.go Loading commit data...
beego.go Loading commit data...
config.go Loading commit data...
config_test.go Loading commit data...
controller.go Loading commit data...
controller_test.go Loading commit data...
doc.go Loading commit data...
docs.go Loading commit data...
error.go Loading commit data...
filter.go Loading commit data...
filter_test.go Loading commit data...
flash.go Loading commit data...
flash_test.go Loading commit data...
hooks.go Loading commit data...
log.go Loading commit data...
mime.go Loading commit data...
namespace.go Loading commit data...
namespace_test.go Loading commit data...
parser.go Loading commit data...
router.go Loading commit data...
router_test.go Loading commit data...
staticfile.go Loading commit data...
staticfile_test.go Loading commit data...
template.go Loading commit data...
template_test.go Loading commit data...
templatefunc.go Loading commit data...
templatefunc_test.go Loading commit data...
tree.go Loading commit data...
tree_test.go Loading commit data...