Details
Description
A StringIndexOutOfBoundsException sometimes occurs when a ajax or a resource request is issued.
The Portlet Container (Liferay 5.2.3) passes invalid input for the requestURI string when wokring on a virtual host.
The patch simply makes sure the String is long enough to get a substring.