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 0 X͍{@a tܭg [ɺ6~TnՎ gXh6\U]ʄy\gz9ߏaE", ^\'as"kpj 3#fi 2000 U0klimovsky@iblsoft.com0U0 0 *H bgpI\BȶШ}</{״3g2Nda <K=2OI"[biLJN|&y<d<p*7p8K{7n Z1"0ZGNGWn50-0 0 *H 010 UZA10UWestern Cape10U Cape Town10U Thawte Consulting1(0&UCertification Services Division1$0"UThawte Personal Freemail CA1+0) *H personal-freemail@thawte.com0 960101000000Z 201231235959Z010 UZA10UWestern Cape10U Cape Town10U Thawte Consulting1(0&UCertification Services Division1$0"UThawte Personal Freemail CA1+0) *H personal-freemail@thawte.com00 *H 0 id[qGQr^}- {߅%u(t:B,c'{K~ݹΖdnD|Mq@8 x^^v]nz|KU)&j8$jDZڣyZ 00U00 *H ~Ngb*M`o`Xa&R5\0JbB#dG)ߝ^l`q\yn G (|_#& sC%/uQkw0?0 0 *H 010 UZA10UWestern 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` 00U0 0CU<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 }&
