Ignore:
Timestamp:
2015-09-13T22:45:59+02:00 (11 years ago)
Author:
simon04
Message:

fix #10023 - Add history of Overpass queries

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/tools/ExceptionUtil.java

    r8513 r8756  
    236236                    "<html>Uploading to the server <strong>failed</strong> because your current<br>"
    237237                    + "dataset violates a precondition.<br>" + "The error message is:<br>" + "{0}" + "</html>",
    238                     escapeReservedCharactersHTML(e.getMessage()));
     238                    Utils.escapeReservedCharactersHTML(e.getMessage()));
    239239        }
    240240    }
     
    424424        }
    425425        Main.error(e);
    426         return escapeReservedCharactersHTML(msg);
     426        return Utils.escapeReservedCharactersHTML(msg);
    427427    }
    428428
     
    691691                + "<br>"
    692692                + "The error message is:<br>" + "{0}"
    693                 + "</html>", escapeReservedCharactersHTML(e.getMessage()));
     693                + "</html>", Utils.escapeReservedCharactersHTML(e.getMessage()));
    694694    }
    695695
     
    709709    }
    710710
    711     /**
    712      * Replaces some HTML reserved characters (&lt;, &gt; and &amp;) by their equivalent entity (&amp;lt;, &amp;gt; and &amp;amp;);
    713      * @param s The unescaped string
    714      * @return The escaped string
    715      */
    716     public static String escapeReservedCharactersHTML(String s) {
    717         return s == null ? "" : s.replace("&", "&amp;").replace("<", "&lt;").replace(">", "&gt;");
    718     }
    719711}
Note: See TracChangeset for help on using the changeset viewer.