mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-10-20 09:31:17 +02:00
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:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user