- Timestamp:
- 2011-01-30T11:51:40+01:00 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/tools/BugReportExceptionHandler.java
r3478 r3832 20 20 import javax.swing.JScrollPane; 21 21 import javax.swing.JTextArea; 22 23 import org.apache.commons.codec.binary.Base64; 22 24 23 25 import org.openstreetmap.josm.Main; … … 88 90 89 91 try { 90 final int maxlen = 7000;92 final int maxlen = 6000; 91 93 StringWriter stack = new StringWriter(); 92 94 e.printStackTrace(new PrintWriter(stack)); … … 107 109 108 110 URL url = new URL("http://josm.openstreetmap.de/josmticket?" + 109 "data="+ 110 Base64.encode( 111 // To note that it came from this code 112 "keywords=template_report&" + 113 "description=" + java.net.URLEncoder.encode( 114 // Note: This doesn't use tr() intentionally, we want bug reports in English 115 "What steps will reproduce the problem?\n" 116 + " 1. \n" 117 + " 2. \n" 118 + " 3. \n" 119 + "\n" 120 + "What is the expected result?\n\n" 121 + "What happens instead?\n\n" 122 + "Please provide any additional information below. Attach a screenshot if\n" 123 + "possible.\n\n" 124 + "{{{\n" + urltext + "\n}}}\n", 125 "UTF-8"))); 111 "tdata="+Base64.encodeBase64URLSafeString(urltext.getBytes("UTF8"))); 126 112 127 113 JPanel p = new JPanel(new GridBagLayout());
Note:
See TracChangeset
for help on using the changeset viewer.