2023-06-09 Fred Gleason <fredg@paravelsystems.com>

* Removed the '#define RD_DEFAULT_MAX_POST_LENGTH' statement from
	'lib/rd.h'.
	* Added a '#define RD_MAX_POST_LENGTH' statement in 'lib/rd.h'.
	* Removed the 'RDSystem::maxPostLength()' and
	'RDSystem::setMaxPostLength()' methods.
	* Removed the 'Maximum Remote Post Length' control from the
	'System-Wide Settings' dialog in rdadmin(1).

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason
2023-06-09 11:31:02 -04:00
parent 717ec9cc17
commit 4e88ca5f0c
11 changed files with 25 additions and 74 deletions

View File

@@ -33,8 +33,7 @@
#include <rdformpost.h>
RDFormPost::RDFormPost(RDFormPost::Encoding encoding,int64_t maxsize,
bool auto_delete)
RDFormPost::RDFormPost(RDFormPost::Encoding encoding,bool auto_delete)
{
bool ok=false;
@@ -76,7 +75,7 @@ RDFormPost::RDFormPost(RDFormPost::Encoding encoding,int64_t maxsize,
post_error=RDFormPost::ErrorMalformedData;
return;
}
if((maxsize>0)&&(post_content_length>maxsize)) {
if(post_content_length>RD_MAX_POST_LENGTH) {
post_error=RDFormPost::ErrorPostTooLarge;
return;
}