Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 7 Jan 2005 09:20:49 +0100
From:      "Vlado Klimovsky" <klimovsky@iblsoft.com>
To:        <freebsd-cvsweb@FreeBSD.org>
Subject:   Bug: CVSweb 3.0.4
Message-ID:  <20050107082051.0C563282BF0@shodan.ibl.sk>

next in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
Hello,

there seems to be a bug in the 3.0.4 version of the CVSweb script. Please
see the spacedHtmlText() function, line 1585, which reads:

  1 while s/(.*)(\t+)/$1 . ' ' x (length($2) * $ts - length($1) % $ts)/e;

The problem is in the '(.*)' subexpression; by default the '*' match
specifier is greedy so the regular expression '(\t+)' will match the LAST
sequence of tabs on the string, not the first one. For this reason the tabs
are expanded into an incorrect number of spaces. I changed the line like
this:

  1 while s/(.*?)(\t+)/$1 . ' ' x (length($2) * $ts - length($1) % $ts)/e;

and the problem seems to be solved.

Regards,
Vlado Klimovsky


------------------------------------------------
Vladimir KLIMOVSKY (klimovsky@iblsoft.com)
IBL Software Engineering, http://www.iblsoft.com/
Mierova 103, 82105 Bratislava, Slovakia
Tel: +421 2 4342 7459, fax: +421 2 4342 7214

[-- Attachment #2 --]
0	*H
010	+0	*H
0S0Q0
	*H
0b10	UZA1%0#U
Thawte Consulting (Pty) Ltd.1,0*U#Thawte Personal Freemail Issuing CA0
040210113054Z
050209113054Z0G10UThawte Freemail Member1$0"	*H
	klimovsky@iblsoft.com00
	*H
0X͍{@a	tܭg[ɺ6~TnՎ gXh6\U]ʄy\gz9ߏaE",^\'as"kpj
3#fi2000 U0klimovsky@iblsoft.com0U00
	*H
bgpI\BȶШ}</{״3g2Nda <K=2OI"[biLJN|&y<d<p*7p8K{7n
Z1"0ZGNGWn50-00
	*H
010	UZA10UWestern Cape10U	Cape Town10U
Thawte Consulting1(0&UCertification Services Division1$0"UThawte Personal Freemail CA1+0)	*H
	personal-freemail@thawte.com0
960101000000Z
201231235959Z010	UZA10UWestern Cape10U	Cape Town10U
Thawte Consulting1(0&UCertification Services Division1$0"UThawte Personal Freemail CA1+0)	*H
	personal-freemail@thawte.com00
	*H
0i԰d[qGQr^}-
{߅%u(t:B,c'{K~ݹΖdnD|Mq@8x^^v]nz|KU)&j8$jDZڣyZ00U00
	*H
~Ngb*M`o`Xa&R5\0JbB#dG)ߝ^l`q\ynG
(|_#&	sC%/uQkw0?0
0
	*H
010	UZA10UWestern Cape10U	Cape Town10U
Thawte Consulting1(0&UCertification Services Division1$0"UThawte Personal Freemail CA1+0)	*H
	personal-freemail@thawte.com0
030717000000Z
130716235959Z0b10	UZA1%0#U
Thawte Consulting (Pty) Ltd.1,0*U#Thawte Personal Freemail Issuing CA00
	*H
0Ħ<UsUNʙZhup[v:aQP
0cZ,p+Z?qV˯<6$*+w=+>@dקe*TH<a@dr`00U00CU<0:08642http://crl.thawte.com/ThawtePersonalFreemailCA.crl0U0)U"0 010UPrivateLabel2-1380
	*H
HP.
fgCL!6-6/P p<ab:~t%Pb'qW%ݩ9 Oe_N4[5MwV!x!5$F]_eO100i0b10	UZA1%0#U
Thawte Consulting (Pty) Ltd.1,0*U#Thawte Personal Freemail Issuing CAQ0	+0	*H
	1	*H
0	*H
	1
050107082048Z0#	*H
	1䤂TE8ߖqU>0g	*H
	1Z0X0
*H
0*H
0
*H
@0+0
*H
(0+0
*H
0x	+71k0i0b10	UZA1%0#U
Thawte Consulting (Pty) Ltd.1,0*U#Thawte Personal Freemail Issuing CAQ0z*H
	1ki0b10	UZA1%0#U
Thawte Consulting (Pty) Ltd.1,0*U#Thawte Personal Freemail Issuing CAQ0
	*H
X0W_ѵ1
TL/AFskA$X'gg
}&^nd*`6;j00{:x9.&;3\D,5%!.j{
Wy[.
w

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050107082051.0C563282BF0>