public static void parse_str(String string, Map<String, Object> results) {
		// parse a string that's URL encoded into an array
		if (results == null) return;
		if (string == null) return;

		String[] stuff;
		if (string.contains("&amp;")) {
			stuff = string.split("&amp;");
		} else {
			stuff = string.split("&");
		}

		String[] split;
		for (int i = 0; i < stuff.length; i++) {
			String part = stuff[i];
			if (part.contains("=")) {
				split = part.split("=");
				try {
					results.put(URLDecoder.decode(split[0],"UTF-8"),URLDecoder.decode(split[1],"UTF-8"));
				} catch (Throwable e) {
					results.clear();
					return;
				}
			}
		}
	}