FileUtil.getShortFileName() does not work for some inputs

Description

FileUtil.getShortFileName("/aaa\bbb\test.jsp")

will return: aaa\bbb\test.jsp
correct value should be: test.jsp

FileUtil.getPath("/aaa\bbb\test.jsp")

will return: /
correct value should be: /aaa\bbb\

Activity

Show:

Michael Saechang July 16, 2012 at 3:56 PM

Committed on:
Portal 6.1.x CE GIT ID: 68413818e818aa9f9c8773f45d5b3b2f4c9c3b75.
Portal 6.2.x GIT ID: 7bc30c87c1ed2cd32ad63924380946242d4235e9.

Fixed
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Branch Version/s

6.1.x
6.0.x

Backported to Branch

Committed

Priority

Zendesk Support

Created June 8, 2012 at 9:09 AM
Updated June 24, 2023 at 3:48 PM
Resolved June 9, 2012 at 10:06 AM