public static String resolveUrl ( String baseUrl , String url ) { String resolvedUrl = resolveUrl ( baseUrl , url , null ) ; if ( resolvedUrl == null ) { resolvedUrl = url . replace ( " " , "%20" ) ; resolvedUrl = resolvedUrl . replace ( "\r" , "%0D" ) ; } return resolvedUrl ; }
Resolve URL but return a minimally escaped version in case of error