2023-05-17 Fred Gleason <fredg@paravelsystems.com>

* Fixed a regression in the WebAPI that caused imports to bypass the
	maximum file size limitation set the 'System Settings' in rdadmin(1).

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason
2023-05-17 13:19:59 -04:00
parent 5265ffe4ca
commit 5eb1c39231
8 changed files with 37 additions and 15 deletions

View File

@@ -112,7 +112,8 @@ Xport::Xport(QObject *parent)
//
// Generate Post
//
xport_post=new RDFormPost(RDFormPost::AutoEncoded,false);
xport_post=new RDFormPost(RDFormPost::AutoEncoded,
rda->system()->maxPostLength(),false);
if(xport_post->error()!=RDFormPost::ErrorOk) {
XmlExit(xport_post->errorString(xport_post->error()),400,"rdxport.cpp",
LINE_NUMBER);