🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #55874

Re: Forecasting the posting's size

#55874
From: Curt Welch
Date: Tue, 01 Jan 2002 20:42
29 lines
2336 bytes
"Joshua" <JoshuaIIII@hotmail.com> wrote:
> said that POST data will contain nulls,but I never
> find them.

They are not normal, and normally should not be sent, but they
do happen.  You could should deal with the problem in an
intelligent manner.  Truncating the posting at the first null
is not an intelligent manner.

If you want to see one in real life, check out
<3c321de3$0$75161$ba620e4c@news.skynet.be>. It ends with a string of NULLs.
It also contains CRs as well which are not part of the CR LF EOL markers.

> Must I search the *whole* input data string for <CRLF>.<CRLF>
> as the terminator? I think ...after all,it is a little bit unsuitable ...

You MUST check out the whole input data string.

> I only get and save what the client sends. I know dot escaping format,but
> I keep them either receiving from clients or send back to clients.

That's a valid way to deal with the issue.  Though it wouldn't hurt to
check for a line beginning with a single DOT and reject the POST as
invalid.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Technical Details
Message-ID: <20020101154241.937$wO@newsreader.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!feed2.onemain.com!feed1.onemain.com!feed1.newsreader.com!news2.newsreader.com!ellis.newsreader.com!not-for-mail
References: <a0mi6f$qqr$1@mail.cn99.com> <20011230161737.549$XI@newsreader.com> <a0o95h$or9$1@mail.cn99.com> <20011230215952.153$nt@newsreader.com> <a0sldf$457$1@mail.cn99.com>

Show Full Headers
Complete Article Headers
Message-ID: <20020101154241.937$wO@newsreader.com>
Subject: Re: Forecasting the posting's size
Date: Tue, 01 Jan 2002 20:42:41 +0000
From: curt@kcwc.com (Curt Welch)
References: <a0mi6f$qqr$1@mail.cn99.com> <20011230161737.549$XI@newsreader.com> <a0o95h$or9$1@mail.cn99.com> <20011230215952.153$nt@newsreader.com> <a0sldf$457$1@mail.cn99.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!feed2.onemain.com!feed1.onemain.com!feed1.newsreader.com!news2.newsreader.com!ellis.newsreader.com!not-for-mail
Organization: NewsReader.Com
Newsgroups: news.software.nntp
X-Trace: NewsReader.Com vhvWMw4xDJxAm8Sy@Llygx=e,uKwn5Z+fcfRAll=1o-dax
X-Face: "p}G*1KH{+F7EYGKLb>ogDguabZ+%,?^epeFB!nzu`)`$=QcvL1KF6<0GH!Tbc!Sqo[|tV5
  %IW48mQf3K=Ci&gZ7]]aazx@]Y-nq!r5{yH/#,?@lDdUDvOfByB2hVW0.@OM%{l/{cT'{w
X-Url: http://CurtWelch.Com/
User-Agent: NewsReader.Com
Lines: 28