Changeset 18707 in josm for trunk


Ignore:
Timestamp:
2023-04-24T18:48:23+02:00 (12 months ago)
Author:
taylor.smock
Message:

Fix #22846: Anonymize VM arguments in status reports (patch by gaben)

This is mostly useful if the user sets the JOSM home directory.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/ShowStatusReportAction.java

    r18445 r18707  
    160160                }
    161161            }
    162             // Add Gnome Atk wrapper details if found
     162            // Add Gnome ATK wrapper details if found
    163163            String atkWrapperDetails = platform.getAtkWrapperPackageDetails();
    164164            if (atkWrapperDetails != null) {
    165165                text.format("Java ATK Wrapper package: %s%n", atkWrapperDetails);
    166166            }
    167             // Add dependencies details if found
     167            // Add dependency details if found
    168168            for (String p : new String[] {
    169169                    "apache-commons-compress", "libcommons-compress-java",
     
    208208            }
    209209            if (!vmArguments.isEmpty()) {
    210                 text.format("VM arguments: %s%n", vmArguments.toString().replace("\\\\", "\\"));
     210                text.format("VM arguments: %s%n", paramCleanup(vmArguments).toString().replace("\\\\", "\\"));
    211211            }
    212212        } catch (SecurityException e) {
     
    281281
    282282    /**
    283      * Shortens and removes private informations from a parameter used for status report.
     283     * Shortens and removes private information from a parameter used for status report.
    284284     * @param param parameter to cleanup
    285285     * @return shortened/anonymized parameter
Note: See TracChangeset for help on using the changeset viewer.