Hi Damon,
Damon Smith wrote:
Hi guys, I noticed in openca-0.9.2-RC6 that if you add trailing
whitespace after the line
ADDITIONAL_REQUEST_ATTRIBUTES "requestercn" "blah" "whatever"
In a pub.conf file, openca craps out (it thinks there's an extra
option).
This is because the config file loader doesn't cut off whitespace at the end of a list.
In the file Configuration.pm on line 181 there is: ## Delete remaining Spaces $line =~ s/^[\s]*//;
I found that copying that same line to the end of the while loop (line 193) fixes the problem.
I attached a patch. Can you test the patch please? I will commit it to CVS if it is ok.
Michael -- ------------------------------------------------------------------- Michael Bell Email: [EMAIL PROTECTED] ZE Computer- und Medienservice Tel.: +49 (0)30-2093 2482 (Computing Centre) Fax: +49 (0)30-2093 2704 Humboldt-University of Berlin Unter den Linden 6 10099 Berlin Email (private): [EMAIL PROTECTED] Germany http://www.openca.org
Index: Configuration.pm =================================================================== RCS file: /cvsroot/openca/openca-0.9/src/modules/openca-configuration/Configuration.pm,v retrieving revision 1.6 diff -r1.6 Configuration.pm 67a68 > ## $Revision$ 171,172c172,174 < ## Erase the parameter Name from the Line < $line =~ s/$paramName// ; --- > ## prepare the values to be parsed > $line =~ s/$paramName// ; ## Erase the parameter Name from the Line > $line =~ s/^[\s]*//; ## Delete leading Spaces 180,182d181 < ## Delete remaining Spaces < $line =~ s/^[\s]*//; < 192a192,193 > ## Delete remaining Spaces > $line =~ s/^[\s]*//;