Hello Michael!

Thanks, the thing worked ;-) It is a very clever addition! I added also 
the '*' between the [] so they really can't see everything ;-)

Janez

On Tue, 28 Sep 2004, Michael Bell wrote:

> Janez Pirc wrote:
> > Hello!
> > 
> > I'm quite a bit annoyed by how the certificate search works, with 
> > wildcards and no entries at all. I mean, if you just press 'OK' and don't 
> > enter any search string or a wildcard ('*') then you can see a list of all 
> > certificates (supposingliy between the MaxReturnedItems limit). I would 
> > instead like to have it that if you do so you don't get anything. And you 
> > have to type in at least something to see something. Does anybody have a 
> > solution for that?
> 
> Perhaps this small patch helps.
> 
> Index: openca-0.9/src/common/lib/cmds/search
> ===================================================================
> RCS file: /cvsroot/openca/openca-0.9/src/common/lib/cmds/search,v
> retrieving revision 1.12
> diff -r1.12 search
> 78a79
>  >     my $filled = 0;
> 85a87
>  >         $filled = 1 if ($h !~ /^[%\?]*$/);
> 86a89,90
>  >     generalError (gettext ("You must enter at minimum one real search 
> string."))
>  >         if (not $filled);
> 
> Michael
> 



-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
Openca-Users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/openca-users

Reply via email to