View Single Post
  #1 (permalink)  
Old 10-13-2008, 05:01 AM
Nicholas Jordan's Avatar
Nicholas Jordan Nicholas Jordan is offline
Senior Member
 
Join Date: Jun 2008
Location: Southwest
Posts: 879
Nicholas Jordan is on a distinguished road
allowable characters from URLDecoder.decode(String
Think this this would find all the allowable: (..?..)
Code:
Pattern.compile("file:(\\w|\\d|-|_|\\.|!|~|\\*|\'|\\(|\\))+WEB-INF/");//
(earlier post on the matter)

RFC 2396
RFC 1738
RFC 1808
RFC 1630

And what is enc in:
Code:
static String decode(String s, String enc) Decodes a application/x-www-form-urlencoded string using a specific encoding scheme.
Are they talking about application/x-www-form-urlencoded...?...


{ message additional information from test build: }
Code:
// Okay, this should be our name. String string = this.getClass().getName(); string.replaceAll("\\.", "/"); // Normal sanity check. if(string != null) { // ce79a43b0673a1.append(FileDog.this.getClass().getResource("/" + string + ".class")); java.net.URL ab277d49021f= new java.net.URL(ce79a43b0673a1.toString()); // java.util.regex.Pattern pitterPatter = java.util.regex.Pattern.compile("file:(/|\\w|\\d|-|_|\\.|!|~|\\*|\'|\\(|\\))+WEB-INF/");// // String cc09566 = new String(java.nio.charset.Charset.defaultCharset().toString()); String l1434be = new String(java.net.URLDecoder.decode(ab277d49021f.toExternalForm(),cc09566)); /****** here we go... ******/ java.util.regex.Matcher d572b093064 = pitterPatter.matcher(l1434be); // If we captured state of where we are at .... while(d572b093064.find()) { // ce79a43b0673a1.append(d572b093064.group()); isValid=Boolean.valueOf(true);// } return ce79a43b0673a1.toString();// } // prints: file:/C:/Documents%20and%20Settings/Owner/.Arachnophilia/CustomClasses/FileDog.class
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
.
Cybercartography: A new theoretical construct proposed by D.R. Fraser Taylor

Last edited by Nicholas Jordan : 10-13-2008 at 05:54 AM. Reason: URLDecode does not decode
Reply With Quote
Sponsored Links