Changeset e940f51 for apps/addressbook


Ignore:
Timestamp:
Nov 19, 2010 12:40:33 AM (10 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
4545a98
Parents:
50d9080e
Message:
  • SecureFile?: New class, catch places that were missed,

add i2p.insecureFiles option to disable (default false)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • apps/addressbook/java/src/net/i2p/addressbook/ConfigParser.java

    r50d9080e re940f51  
    3636import java.util.Map;
    3737
     38import net.i2p.util.SecureFile;
    3839import net.i2p.util.SecureFileOutputStream;
    3940
     
    281282     */
    282283    public static void write(Map map, File file) throws IOException {
    283         File tmp = File.createTempFile("hoststxt-", ".tmp", file.getAbsoluteFile().getParentFile());
     284        File tmp = SecureFile.createTempFile("hoststxt-", ".tmp", file.getAbsoluteFile().getParentFile());
    284285        ConfigParser
    285286                .write(map, new BufferedWriter(new OutputStreamWriter(new SecureFileOutputStream(tmp), "UTF-8")));
Note: See TracChangeset for help on using the changeset viewer.