[cvsnt] Re: [cvsweb_nt] spaces in user name

Thierry B. thierry.bo at XXXnetcourrier.com
Thu Jul 10 16:33:37 BST 2003


Well,

I answer to myself. I think I have the fix.

> - try to change this portion of cvsweb.cgi I think is related to the
> problem (line 1743 to 1756 ~). I have not used regular expressions before,
> but I think it is in the first line that we can make a change so that the
> author name match even if there is a space in it. Could you help me to
> make the change ?

>
(m|^date:\s+(\d+)/(\d+)/(\d+)\s+(\d+):(\d+):(\d+);\s+author:\s+(\S+);\s+stat
e:\s+(\S+);\s+(lines:\s+([0-9\s+-]+))?|)

I changed the line above to
(m|^date:\s+(\d+)/(\d+)/(\d+)\s+(\d+):(\d+):(\d+);\s+author:\s+([^\t\n\r\f\v
]+);\s+state:\s+(\S+);\s+(lines:\s+([0-9\s+-]+))?|)

replacing   author:\s+(\S+)   by   author:\s+([^\t\n\r\f\v]+).

This works for my problem, but I wonder if this is introduce another
potential bug.

Thierry B.




More information about the cvsnt mailing list