Rocksolid Light

News from da outaworlds

mail  files  register  groups  login

Message-ID:  

BOFH excuse #114: electro-magnetic pulses from French above ground nuke testing.


rocksolid / Rocksolid Nodes Help / spaces inserted when changing subject

SubjectAuthor
* spaces inserted when changing subjectMarco Moock
`* Re: spaces inserted when changing subjectRetro Guy
 `* Re: spaces inserted when changing subjectRetro Guy
  `- Re: spaces inserted when changing subjectRetro Guy

1
Subject: spaces inserted when changing subject
From: Marco Moock
Newsgroups: rocksolid.nodes.help
Organization: A noiseless patient Spider
Date: Wed, 6 Nov 2024 16:10 UTC
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: mm+usenet-es@dorfdsl.de (Marco Moock)
Newsgroups: rocksolid.nodes.help
Subject: spaces inserted when changing subject
Date: Wed, 6 Nov 2024 17:10:58 +0100
Organization: A noiseless patient Spider
Lines: 19
Message-ID: <vgg4ei$26e09$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 06 Nov 2024 17:10:59 +0100 (CET)
Injection-Info: dont-email.me; posting-host="65ac100ed45fe0b3b384d61510669eb4";
logging-data="2308105"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+56lnz4UkYmJ5p6KZmJnIs"
Cancel-Lock: sha1:vKB0ba8tEsylXmGlyXplaTz1HHc=
View all headers

Hello!

One of my users reported that a space is inserted when changing the
subject.
https://pi-dach.dorfdsl.de/rocksolid/article-flat.php?id=209&group=rocksolid.shared.test#209

Betreff 3 (war: Betreff 2? )

According to him, it happens when replying to a post with changed
subject.

If you need more info, please tell me.

--
kind regards
Marco

Send spam to 1730909215muell@stinkedores.dorfdsl.de

Subject: Re: spaces inserted when changing subject
From: Retro Guy
Newsgroups: rocksolid.nodes.help
Organization: Rocksolid Light
Date: Wed, 6 Nov 2024 16:20 UTC
References: 1
Path: eternal-september.org!news.eternal-september.org!feeder2.eternal-september.org!i2pn.org!i2pn2.org!.POSTED!not-for-mail
From: retroguy@novabbs.com (Retro Guy)
Newsgroups: rocksolid.nodes.help
Subject: Re: spaces inserted when changing subject
Date: Wed, 6 Nov 2024 09:20:25 -0700
Organization: Rocksolid Light
Message-ID: <c231a294be5371cfa1581d8e04e6907e$1@novabbs.org>
References: <vgg4ei$26e09$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Injection-Info: i2pn2.org;
logging-data="1237879"; mail-complaints-to="usenet@i2pn2.org";
posting-account="PGd4t4cXnWwgUWG9VtTiCsm47oOWbHLcTr4rYoM0Edo";
User-Agent: 40tude_Dialog/2.0.15.41
X-Spam-Checker-Version: SpamAssassin 4.0.0
View all headers

On Wed, 6 Nov 2024 17:10:58 +0100, Marco Moock wrote:

> Hello!
>
> One of my users reported that a space is inserted when changing the
> subject.
> https://pi-dach.dorfdsl.de/rocksolid/article-flat.php?id=209&group=rocksolid.shared.test#209
>
> Betreff 3 (war: Betreff 2? )
>
> According to him, it happens when replying to a post with changed
> subject.
>
> If you need more info, please tell me.

I think I see. Are they added at the end of the Subject?

If so, I should be able to trim that, just let me know if that is the
specific place you're seeing spaces added.

Subject: Re: spaces inserted when changing subject
From: Retro Guy
Newsgroups: rocksolid.nodes.help
Organization: Rocksolid Light development site
Date: Wed, 6 Nov 2024 16:37 UTC
References: 1 2
Path: eternal-september.org!news.eternal-september.org!feeder2.eternal-september.org!i2pn.org!i2pn2.org!.POSTED!not-for-mail
From: retro.guy@rocksolidbbs.com (Retro Guy)
Newsgroups: rocksolid.nodes.help
Subject: Re: spaces inserted when changing subject
Date: Wed, 6 Nov 2024 16:37:06 +0000
Organization: Rocksolid Light development site
Message-ID: <0b61c7ec2420f93fe1bb66604ecef6d5@example.com>
References: <vgg4ei$26e09$1@dont-email.me> <c231a294be5371cfa1581d8e04e6907e$1@novabbs.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: i2pn2.org;
logging-data="1239872"; mail-complaints-to="usenet@i2pn2.org";
posting-account="D0b4VQC1DRDMD6KZpq3aPScvEpIhqvuykTqXjXAFAlQ";
User-Agent: Rocksolid Light
X-Spam-Checker-Version: SpamAssassin 4.0.0
X-Rslight-Site: $2y$10$ZZlak3vxOExiAz1dQLXGBuf.bUcxpZD/.2YbYJ/uqIyxJfGTlhf4W
X-Face: .&YR-G(w(DZ$$,}%k=]*5*!p'=(anr"IT`wZG'2VWdfl\r)l[42u7JH`n(JUQ*e5*A|XCDf ?&\X&uwkl38"CYX3O8m}C8E4p'%N$2#kSTVzx{Ly|DjLT\Vk7NE}NQ(VC$Yq]i:7|z[.9iv^g>*8_B H0=hZt'[%)4kG|
X-Rslight-Posting-User: 57ddb8f1a4a05e45f53fcfd180d236ac23f6dd4e
View all headers

On Wed, 6 Nov 2024 16:20:25 +0000, Retro Guy wrote:

> On Wed, 6 Nov 2024 17:10:58 +0100, Marco Moock wrote:
>
>> Hello!
>>
>> One of my users reported that a space is inserted when changing the
>> subject.
>> https://pi-dach.dorfdsl.de/rocksolid/article-flat.php?id=209&group=rocksolid.shared.test#209
>>
>> Betreff 3 (war: Betreff 2? )
>>
>> According to him, it happens when replying to a post with changed
>> subject.
>>
>> If you need more info, please tell me.
>
> I think I see. Are they added at the end of the Subject?
>
> If so, I should be able to trim that, just let me know if that is the
> specific place you're seeing spaces added.

Take a look in post.php (in <webdir>/rocksolid. Find line 64, or near
there:

// Check some header strings for bad characters
$newsgroups = sanitize_header($newsgroups);
$subject = sanitize_header($subject);
$email = sanitize_header($email);

change line:
$subject = sanitize_header($subject);

to:
$subject = trim(sanitize_header($subject));

and see if that fixes the issue.

--
Retro Guy

Subject: Re: spaces inserted when changing subject
From: Retro Guy
Newsgroups: rocksolid.nodes.help
Organization: Rocksolid Light
Date: Thu, 7 Nov 2024 13:39 UTC
References: 1 2 3
Path: eternal-september.org!news.eternal-september.org!feeder2.eternal-september.org!i2pn.org!i2pn2.org!.POSTED!not-for-mail
From: retroguy@novabbs.com (Retro Guy)
Newsgroups: rocksolid.nodes.help
Subject: Re: spaces inserted when changing subject
Date: Thu, 7 Nov 2024 13:39:48 +0000
Organization: Rocksolid Light
Message-ID: <7b957ce7c199d3e5a5e7ae453587e8b1@www.novabbs.org>
References: <vgg4ei$26e09$1@dont-email.me> <c231a294be5371cfa1581d8e04e6907e$1@novabbs.org> <0b61c7ec2420f93fe1bb66604ecef6d5@example.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: i2pn2.org;
logging-data="1372986"; mail-complaints-to="usenet@i2pn2.org";
posting-account="HNchV9coSOli+kkOHciCZlGs2VaRn7Emh38jWV1k174";
User-Agent: Rocksolid Light
X-Rslight-Posting-User: 28547bffeec402cc2e544e2f8e28cc9329f66434
X-Rslight-Site: $2y$10$lZkcSxmdNxFqX1/8gqQe4Oxbw34.CK7N.qWdfbnVpcN4BqKMr.kmu
X-Face: .&YR-G(w(DZ$$,}%k=]*5*!p'=(anr"IT`wZG'2VWdfl\r)l[42u7JH`n(JUQ*e5*A|XCDf ?&\X&uwkl38"CYX3O8m}C8E4p'%N$2#kSTVzx{Ly|DjLT\Vk7NE}NQ(VC$Yq]i:7|z[.9iv^g>*8_B H0=hZt'[%)4kG|
X-Spam-Checker-Version: SpamAssassin 4.0.0
View all headers

On Wed, 6 Nov 2024 16:37:06 +0000, Retro Guy wrote:

> On Wed, 6 Nov 2024 16:20:25 +0000, Retro Guy wrote:
>
>> On Wed, 6 Nov 2024 17:10:58 +0100, Marco Moock wrote:
>>
>>> Hello!
>>>
>>> One of my users reported that a space is inserted when changing the
>>> subject.
>>> https://pi-dach.dorfdsl.de/rocksolid/article-flat.php?id=209&group=rocksolid.shared.test#209
>>>
>>> Betreff 3 (war: Betreff 2? )
>>>
>>> According to him, it happens when replying to a post with changed
>>> subject.
>>>
>>> If you need more info, please tell me.
>>
>> I think I see. Are they added at the end of the Subject?
>>
>> If so, I should be able to trim that, just let me know if that is the
>> specific place you're seeing spaces added.
>
> Take a look in post.php (in <webdir>/rocksolid. Find line 64, or near
> there:
>
> // Check some header strings for bad characters
> $newsgroups = sanitize_header($newsgroups);
> $subject = sanitize_header($subject);
> $email = sanitize_header($email);
>
> change line:
> $subject = sanitize_header($subject);
>
> to:
> $subject = trim(sanitize_header($subject));
>
> and see if that fixes the issue.

I have pushed this change to devel.

--
Retro Guy

1

rocksolid light 0.9.8
clearnet tor