Index: /trunk/src/org/openstreetmap/josm/tools/BugReportExceptionHandler.java
===================================================================
--- /trunk/src/org/openstreetmap/josm/tools/BugReportExceptionHandler.java	(revision 2720)
+++ /trunk/src/org/openstreetmap/josm/tools/BugReportExceptionHandler.java	(revision 2721)
@@ -64,4 +64,5 @@
             if (answer == 1) {
                 try {
+                    final int maxlen = 7000;
                     StringWriter stack = new StringWriter();
                     e.printStackTrace(new PrintWriter(stack));
@@ -69,4 +70,14 @@
                     String text = ShowStatusReportAction.getReportHeader()
                     + stack.getBuffer().toString();
+                    String urltext = text.replaceAll("\r",""); /* strip useless return chars */
+                    if(urltext.length() > maxlen)
+                    {
+                         urltext = urltext.substring(0,maxlen);
+                         int idx = urltext.lastIndexOf("\n");
+                         /* cut whole line when not loosing too much */
+                         if(maxlen-idx < 200)
+                             urltext = urltext.substring(0,idx+1);
+                         urltext += "...<snip>...\n";
+                    }
 
                     URL url = new URL("http://josm.openstreetmap.de/josmticket?" +
@@ -86,5 +97,5 @@
                                                             + "Please provide any additional information below. Attach a screenshot if\n"
                                                             + "possible.\n\n"
-                                                            + "{{{\n" + text + "\n}}}\n",
+                                                            + "{{{\n" + urltext + "\n}}}\n",
                                                          "UTF-8")));
 
