sergiogonzalez/liferay-portal — pull request #426 by KocsisDaniel (2012-11-05 12:28:35+00:00)
Title: [TECH SUPPORT] LPS-30767

Hi Sergio,

I added the extra contains logic, because the method is really general, and I think it is possible to get a URL without the context (meanwhile it has a valid value) and in this case the pos will be -1 which ruins the generated URL.

thanks,
Daniel