Skip to content

Commit

Permalink
make search better
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh Summitt committed Oct 4, 2023
1 parent bbf2292 commit fcea7f2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions NonHTTPProxy/src/josh/dao/Requests.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package josh.dao;

import java.nio.charset.Charset;
import java.nio.charset.StandardCharsets;
import java.util.Base64;

import javax.persistence.Column;
Expand Down Expand Up @@ -57,8 +59,8 @@ public Requests(int Index, byte[] requestResponse, byte[] original, String SrcIp
this.direction = Direction;
this.date = time;
this.bytes = original.length;
this.original_str = new String(original); //.replaceAll("[^a-zA-Z0-9~!@#$%^&*()_+`\\-=,./<>?\\s]", "");
this.data_str = new String(requestResponse);//.replaceAll("[^a-zA-Z0-9~!@#$%^&*()_+`\\-=,./<>?\\s]", "");
this.original_str =new String(original).replaceAll("[^\\x00-\\x7F]", "");
this.data_str = new String(requestResponse).replaceAll("[^\\x00-\\x7F]", "");
this.protocol = protocol;


Expand Down

0 comments on commit fcea7f2

Please sign in to comment.