Skip to content

Commit

Permalink
NEW Hide Basic auth pass found into URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Aug 17, 2023
1 parent 4225178 commit 87b6233
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ public void onStart() {
String pattern = "^(https?:https://[^:]+):[^@]+@";
Pattern regexPattern = Pattern.compile(pattern);
Matcher matcher = regexPattern.matcher(currentUrl);
String currentUrlWithoutPass = matcher.replaceFirst("$1:******@");
String currentUrlWithoutPass = matcher.replaceFirst("$1:*****@");
s3+="<font color='#440066'><b>"+getString(R.string.currentUrl)+":</b></font><br /><br />\n"+title+"<br />\n"+currentUrlWithoutPass;
}
String lastversionfound = intent.getStringExtra("lastversionfound");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ public void onStart() {
if (! "".equals(this.listOfRootUrl.get(i).getBasicAuthLogin())) {
tmps += " - "+this.listOfRootUrl.get(i).getBasicAuthLogin();
//tmps += ":"+this.listOfRootUrl.get(i).getBasicAuthPass();
tmps += ":******";
tmps += ":*****";
}
tmps += ")";
adapter.add(tmps);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ public void onCreate(Bundle savedInstanceState) {
if (! "".equals(MainActivity.listOfRootUrl.get(count).getBasicAuthLogin())) {
tmps += " - "+MainActivity.listOfRootUrl.get(count).getBasicAuthLogin();
//tmps += ":"+MainActivity.listOfRootUrl.get(count).getBasicAuthPass();
tmps += "******";
tmps += ":*****";
}
tmps += ")";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ public void onClick(View v) {
if (! "".equals(MainActivity.listOfRootUrl.get(count).getBasicAuthLogin())) {
tmps += " - "+MainActivity.listOfRootUrl.get(count).getBasicAuthLogin();
//tmps += ":"+MainActivity.listOfRootUrl.get(count).getBasicAuthPass();
tmps += ":******";
tmps += ":*****";
}
tmps += ")";

Expand Down

0 comments on commit 87b6233

Please sign in to comment.