(String str)
| 101 | } |
| 102 | |
| 103 | public static String URLEncode(String str) { |
| 104 | String result = ""; |
| 105 | if (null == str) { |
| 106 | return ""; |
| 107 | } |
| 108 | try { |
| 109 | result = java.net.URLEncoder.encode(str, "UTF-8"); |
| 110 | } catch (UnsupportedEncodingException e) { |
| 111 | BurpExtender.stdout.println(e.getMessage()); |
| 112 | } |
| 113 | return result; |
| 114 | } |
| 115 | |
| 116 | public static String URLDecode(String str) { |
| 117 | String result = ""; |