@@ -441,6 +441,7 @@ private class ExtractTask extends SwingWorker<Void, ResValue> {
441441 private Pattern inputFieldPattern ;
442442 private final Pattern contentTypePattern = Pattern .compile ("^Content-Type: (.*)$" );
443443 private Pattern [] excludedPatterns ;
444+ private static final String ILLEGAL_VALUE_MESS = "Invalid escaped value during URLDecode, ignoring decoding." ;
444445
445446 private boolean isExcluded (String [] headers ) {
446447 if (headers != null && excludedPatterns .length > 0 ) {
@@ -494,9 +495,7 @@ protected Void doInBackground() {
494495 processMessage (requestList [i ].getRequest (), url ,i );
495496 if (searchResponse )
496497 processMessage (requestList [i ].getResponse (), url ,i );
497- }
498-
499-
498+ }
500499 } catch (Exception e ) {
501500 e .printStackTrace ();
502501 }
@@ -544,6 +543,10 @@ private void processMessage(byte[] message, URL url, int proxyId) {
544543 svalue = URLDecoder .decode (svalue , "UTF-8" );
545544 } catch (UnsupportedEncodingException e ) {
546545 System .out .println (e .getMessage ());
546+ mCallbacks .issueAlert (e .getMessage ());
547+ } catch (IllegalArgumentException e ) {
548+ System .out .println (ILLEGAL_VALUE_MESS );
549+ mCallbacks .issueAlert (ILLEGAL_VALUE_MESS );
547550 }
548551 publish (new ResValue (svalue , url ,proxyId ));
549552 }
0 commit comments