From: Wolfgang M. M. <wol...@us...> - 2004-09-12 13:12:43
|
Update of /cvsroot/exist/eXist-1.0/src/org/exist/http/webdav/methods In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4679/src/org/exist/http/webdav/methods Modified Files: Put.java Log Message: Replaced all occurrences of new URI(file.toURL().toString()).toASCIIString(); to file.toURI().toASCIIString(); (patch by Piotr). Index: Put.java =================================================================== RCS file: /cvsroot/exist/eXist-1.0/src/org/exist/http/webdav/methods/Put.java,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** Put.java 6 Aug 2004 17:36:36 -0000 1.5 --- Put.java 12 Sep 2004 13:12:22 -0000 1.6 *************** *** 66,75 **** HttpServletResponse response, String path) throws ServletException, IOException { File tempFile = saveRequestContent(request); ! String url; ! try { ! url = new URI(tempFile.toURL().toString()).toASCIIString(); ! } catch (URISyntaxException e1) { ! url = tempFile.toString(); ! } String contentType = request.getContentType(); DBBroker broker = null; --- 66,70 ---- HttpServletResponse response, String path) throws ServletException, IOException { File tempFile = saveRequestContent(request); ! String url = tempFile.toURI().toASCIIString(); String contentType = request.getContentType(); DBBroker broker = null; |