hhuijser/liferay-portal — pull request #1758 by ericmin (2014-02-25 14:41:06+00:00)
Title: LPS-44383 Friendly URL comparison should not be case sensitive

The fix should address two parts of the issue:
1. In FriendlyURLServlet.getRedirect() we have the following check:

if (!layoutFriendlyURLCompositeFriendlyURL.equals(layout.getFriendlyURL(locale))) {...}
The friendly url from database will be always lower case so lower case layoutFriendlyURLCompositeFriendlyURL makes more sense.

2. In PortalImpl.getLocalizedFriendlyURL() we have the following check:

if (requestURI.contains(layoutFriendlyURL)) {...}
Here layoutFriendlyURL can be from path and database
a) When it is from path it should have the same case as requestURI as they are from the same request.
b) When it is from database it will be lower case.

So that make more sense if we lower case all the urls here.

Thanks.