433849 FileResource string compare fix

This commit is contained in:
Greg Wilkins 2014-05-06 10:45:10 +02:00
parent f8c1f70b75
commit f26291f5b6
1 changed files with 2 additions and 2 deletions

View File

@ -108,8 +108,8 @@ public class FileResource extends Resource
_file=file;
URI file_uri=_file.toURI();
_uri=normalizeURI(_file,uri);
if (!_uri.equals(file_uri) && !_uri.toString().equals(file_uri.toString()))
if (!_uri.equals(file_uri.toString()))
{
// URI and File URI are different. Is it just an encoding difference?
if (!file_uri.toString().equals(URIUtil.decodePath(uri.toString())))