sergiogonzalez/liferay-portal — pull request #371 by matethurzo (2012-09-27 13:42:38+00:00)
Title:  [TECH SUPPORT] LPS-30150

Hey Sergio,

This fix is based on Nate's suggestions over here: http://in.liferay.com/web/global.engineering/forums/-/message_boards/message/660483

I've tested the change and it works for me.

I've asked Tamás to create a test for this, and I've opened a ticket for the test creation: http://issues.liferay.com/browse/LPS-30199

The reason why we are not creating it with this commit, is that the ticket is overdue so it has to be given to the customer as soon as possible.

I've considered changing the string manipulations with regex but I decided not to change it due to performance reasons.

Thanks,

Máté