Ryan Bloom wrote:

>On Tuesday 04 September 2001 15:26, Brian Pane wrote:
>
>>Justin Erenkrantz wrote:
>>
>>>Both Cliff and OtherBill sent me emails complaining about the
>>>change to strcasecmp in some places to support Brian Pane's
>>>new hash code in util_filter.c.  (Never mind that a lot of
>>>the code already did strcasecmp...)
>>>
>>>This patch makes the filter name lowercase for the searches
>>>and lets us use strcmp.  (I only searched for files that
>>>used frec->name directly...)
>>>
>>>Please review and test.  My commits are getting an awful lot
>>>of negative feedback lately, so I'm going to switch to R-T-C.
>>>So, I'll need 3 +1s to commit this.  -- justin
>>>
>>Alternatively, how about just leaving everything capitalized
>>and removing the case-insensitivity support in add_any_filter?
>>I wasn't happy about having to normalize the case in add_any_filter
>>in order to make the hash tables match the semantics of the
>>strcasecmp loop that they replaced, so I'd rather drop the
>>lowercasing in add_any_filter and just use the capital forms
>>throughout (with case-insensitive comparisons) unless that
>>breaks something else.
>>
>
>Please do not remove the case issues.  The last thing we want to have happen,
>is for an admin to do the following:
>
>SetOutputFilter includes
>
>And have that fail.  Just have register_filter always use upper case instead
>of lower case, and have the add_any_filter always convert to upper case.
>
>Bam, all problems go away, and the patch remains small.   :-)
>
I agree; capitalizing in register_filter is a reasonable and easy solution.

--Brian


Reply via email to