- Timestamp:
- 2024-09-06T09:24:24+02:00 (2 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/io/CachedFile.java
r19194 r19211 485 485 486 486 String a = urlStr.replaceAll("[^A-Za-z0-9_.-]", "_"); 487 if (a.length() > 120) { 488 a = a.substring(0, 100) + "_" + Utils.md5Hex(urlStr); 487 /* size 11: prefix mirror_ and suffix .tmp */ 488 Integer maxFileLength = Config.getPref().getInt("cache.filename.maxlength", 140)-11; 489 if (a.length() > maxFileLength) { 490 a = a.substring(0, maxFileLength-33) + "_" + Utils.md5Hex(urlStr); 489 491 } 490 492 String localPath = "mirror_" + a;
Note:
See TracChangeset
for help on using the changeset viewer.