fixing https issue with URL validator

This commit is contained in:
4pr0n 2014-06-11 23:01:16 -07:00
parent bcb2e704fb
commit 848a0757fa

View File

@ -384,7 +384,7 @@ public class MainWindow implements Runnable, RipStatusHandler {
} }
try { try {
String urlText = ripTextfield.getText().trim(); String urlText = ripTextfield.getText().trim();
if (!urlText.startsWith("http:")) { if (!urlText.startsWith("http")) {
urlText = "http://" + urlText; urlText = "http://" + urlText;
} }
URL url = new URL(urlText); URL url = new URL(urlText);