Can you explain the incorrect behavior you're seeing in more detail by
providing a specific example of a URL on which this is breaking? Thanks.

On Mon, Oct 31, 2011 at 6:44 AM, Jari Ketola <[email protected]> wrote:

> Hi,
>
> We ran into a bug in SearchEngineFriendlyURLFilter. The filter seems to do
> the match on the first occurance of period
>
> int period = uri.indexOf('.');
>
> ...
>>
> if (uri.regionMatches(period + 1, ext, 0, ext.length()))
>>
>
> This obviously fails on urls like /paint.net.cfm/v3
>
> I guess uri.lastIndexOf('.'); should fix the problem?
>
>  Jari
>
>  --
> official tag/function reference: http://openbd.org/manual/
> mailing list - http://groups.google.com/group/openbd?hl=en
>



-- 
Matthew Woodward
[email protected]
http://blog.mattwoodward.com
identi.ca / Twitter: @mpwoodward

Please do not send me proprietary file formats such as Word, PowerPoint,
etc. as attachments.
http://www.gnu.org/philosophy/no-word-attachments.html

-- 
official tag/function reference: http://openbd.org/manual/
 mailing list - http://groups.google.com/group/openbd?hl=en

Reply via email to