From: <leo...@us...> - 2012-07-06 08:29:50
|
Revision: 4410 http://j-wings.svn.sourceforge.net/j-wings/?rev=4410&view=rev Author: leonchiver Date: 2012-07-06 08:29:44 +0000 (Fri, 06 Jul 2012) Log Message: ----------- o make the backing store less error prone on windows Modified Paths: -------------- wings3/trunk/servlet-prefs/src/java/org/wings/prefs/ServletPreferences.java Modified: wings3/trunk/servlet-prefs/src/java/org/wings/prefs/ServletPreferences.java =================================================================== --- wings3/trunk/servlet-prefs/src/java/org/wings/prefs/ServletPreferences.java 2012-04-25 15:00:45 UTC (rev 4409) +++ wings3/trunk/servlet-prefs/src/java/org/wings/prefs/ServletPreferences.java 2012-07-06 08:29:44 UTC (rev 4410) @@ -147,12 +147,13 @@ } + + if (userName != null) { + userName = userName.replaceAll(":", "_").replaceAll(" ", "_").replaceAll("\\\\", "_"); + } return userName; - } - - private static File setupUserRoot(String userName) { String baseDir = System.getProperty("java.util.prefs.userRoot", System.getProperty("user.home")); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |