Changeset 19194 in josm for trunk


Ignore:
Timestamp:
2024-08-13T17:53:31+02:00 (3 months ago)
Author:
stoecker
Message:

fix #23850 - reduce long cache file names

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/io/CachedFile.java

    r19050 r19194  
    485485
    486486        String a = urlStr.replaceAll("[^A-Za-z0-9_.-]", "_");
     487        if (a.length() > 120) {
     488            a = a.substring(0, 100) + "_" + Utils.md5Hex(urlStr);
     489        }
    487490        String localPath = "mirror_" + a;
    488491        localPath = truncatePath(destDir, localPath);
Note: See TracChangeset for help on using the changeset viewer.