← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 503: Fixed problem with spaces in filenames (bug 418534) by using file:/// uri form.

 

------------------------------------------------------------
revno: 503
committer: Bob Jolliffe <bobj@bobj-laptop>
branch nick: trunk
timestamp: Tue 2009-08-25 12:37:39 +0100
message:
  Fixed problem with spaces in filenames (bug 418534) by using file:/// uri form.
modified:
  lite-package/src/main/java/org/hisp/dhis/TrayApp.java


--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk

Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription.
=== modified file 'lite-package/src/main/java/org/hisp/dhis/TrayApp.java'
--- lite-package/src/main/java/org/hisp/dhis/TrayApp.java	2009-04-28 19:21:29 +0000
+++ lite-package/src/main/java/org/hisp/dhis/TrayApp.java	2009-08-25 11:37:39 +0000
@@ -253,7 +253,8 @@
         }
         // find the last "/" just before the "!"
         int endIndex = resourceString.lastIndexOf("/", resourceString.lastIndexOf("!"));
-        return resourceString.substring(9, endIndex);
+        // make a URI of type file
+        return "file://" + resourceString.substring(9, endIndex);
       }
 
 }