Article View: news.software.readers
Article #127712Re: [slrn] bug with news: urls (0.9.7.4pl2)
From: Thomas Schultz
Date: Fri, 04 Jul 2003 20:02
Date: Fri, 04 Jul 2003 20:02
41 lines
2367 bytes
2367 bytes
* Janne Nikula [2003-06-30 11:27] :
> Yes, I have the same problem (using 0.9.7.4pl2) and it is annoying.
> The following patch should make slrn to do the right thing in this
> context. [...]
Not quite. When dealing with Message-IDs (like in
news:<some@message.id>), the closing bracket really is part of the
URL, so it's wrong to simply cut it off in all cases (like slrn
0.9.7.4 did). That's the reason why I changed the code.
I now see that my "fix" introduced a new problem. Hopefully, the
following patch will work correctly in all cases:
--- art.c~ 2003-05-08 22:42:06.000000000 +0200
+++ art.c 2003-07-04 21:52:32.000000000 +0200
@@ -876,12 +876,17 @@
if (is_news)
{
+ int saw_opening_bracket = 0;
+
ptr+=5;
if (*ptr == '<')
- ptr++;
+ {
+ ptr++;
+ saw_opening_bracket = 1;
+ }
while ((ch = *ptr) && (NULL == slrn_strchr (" \t\n<>", ch)))
ptr++;
- if (*ptr == '>')
+ if ((*ptr == '>') && saw_opening_bracket)
ptr++;
}
else
--
Thomas Schultz <tststs@gmx.de> News on slrn: http://slrn.sf.net/news.html
.-----------------------------. [2002-03-13] slrn 0.9.7.4 is out
| Home of the slrn newsreader | [2002-02-03] Screenshot page online
| http://slrn.sourceforge.net | [2002-02-03] "Port" to Mac OS X
Technical Details
Message-ID:
<slrnbgbnbh.1dq.tststs@moonlight.tststs.ddns.org>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!news5.aus1.giganews.com!firehose2!nntp4!intern1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeed.freenet.de!news.shlink.de!fu-berlin.de!uni-berlin.de!dialin-145-254-253-076.arcor-ip.NET!not-for-mailReferences:
<2003-06-30T00-05-26@bubble.markhill.me.uk> <slrnbg07hh.gii.geetee@hawking.pp.htv.fi>Show Full Headers
Complete Article Headers
Message-ID: <slrnbgbnbh.1dq.tststs@moonlight.tststs.ddns.org> Subject: Re: [slrn] bug with news: urls (0.9.7.4pl2) Date: Fri, 04 Jul 2003 20:02:57 +0000 From: Thomas Schultz <tststs@gmx.de> References: <2003-06-30T00-05-26@bubble.markhill.me.uk> <slrnbg07hh.gii.geetee@hawking.pp.htv.fi> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!news5.aus1.giganews.com!firehose2!nntp4!intern1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeed.freenet.de!news.shlink.de!fu-berlin.de!uni-berlin.de!dialin-145-254-253-076.arcor-ip.NET!not-for-mail Newsgroups: news.software.readers Organization: Pinguin online. Lines: 41 NNTP-Posting-Host: dialin-145-254-253-076.arcor-ip.net (145.254.253.76) X-Trace: fu-berlin.de 1057349356 1376289 145.254.253.76 (16 [152]) User-Agent: slrn/0.9.7.4pl2 (Linux)